aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-08-02 02:28:23 +0800
committerGitHub <noreply@github.com>2023-08-01 18:28:23 +0000
commit54c28fddd8a407c3ddea81923bb2978c33ef020d (patch)
tree3bc9b879744ad2939be433ba0e561a4ac6fb0e31 /docs
parentb1089bdafef1dfb62ecbac99665ac7f7fd5eddce (diff)
downloadgitea-54c28fddd8a407c3ddea81923bb2978c33ef020d.tar.gz
gitea-54c28fddd8a407c3ddea81923bb2978c33ef020d.zip
Clarify the logger's MODE config option (#26267)
1. Fix the wrong document (add the missing `MODE=`) 2. Add a more friendly log message to tell users to add `MODE=` in their config Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'docs')
-rw-r--r--docs/content/administration/logging-config.en-us.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/content/administration/logging-config.en-us.md b/docs/content/administration/logging-config.en-us.md
index d9739e1881..33470ca448 100644
--- a/docs/content/administration/logging-config.en-us.md
+++ b/docs/content/administration/logging-config.en-us.md
@@ -102,8 +102,11 @@ MODE = file, file-error
; by default, the "file" mode will record logs to %(log.ROOT_PATH)/gitea.log, so we don't need to set it
; [log.file]
+; by default, the MODE (actually it's the output writer of this logger) is taken from the section name, so we don't need to set it either
+; MODE = file
[log.file-error]
+MODE = file
LEVEL = Error
FILE_NAME = file-error.log
```