From acd5f33713e65ddf47458bd79820eb4744722000 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 2 Aug 2023 07:08:28 +0800 Subject: [PATCH] Clarify the logger's MODE config option (#26267) (#26281) Backport #26267 by @wxiaoguang 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: wxiaoguang --- administration/logging-config.en-us.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/administration/logging-config.en-us.md b/administration/logging-config.en-us.md index d9739e18..33470ca4 100644 --- a/administration/logging-config.en-us.md +++ b/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 ```