From a5eda416a275c176f1670f694e9b41b8cd0aa535 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 10 Nov 2023 11:59:25 +0100 Subject: [PATCH] Update the sub-logger MODE settings [#10] These were previously [log] settings, named after the sub-logger, like ROUTER and ACCESS, but have now been replaced with MODE in sub-logger groups. ROUTER -> logger.router.MODE ACCESS -> logger.access.MODE Fixes #10 --- deb/app.ini | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/deb/app.ini b/deb/app.ini index fac728e..7a85ec7 100644 --- a/deb/app.ini +++ b/deb/app.ini @@ -560,11 +560,9 @@ LEVEL = Info ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Router Logger ;; -;; Switch off the router log -;DISABLE_ROUTER_LOG=false -;; -;; Set the log "modes" for the router log (if file is set the log file will default to router.log) -ROUTER = console +;; Set the log "mode" for the router log (if file is set the log file will default to router.log) +;; Default is ',', which means that the main logger MODE is used +;logger.router.MODE = file ;; ;; The router will log different things at different levels. ;; @@ -573,7 +571,7 @@ ROUTER = console ;; * slow routers will be logged at WARN ;; * failed routers will be logged at WARN ;; -;; The routing level will default to that of the system but individual router level can be set in +;; The least severe routing level will default to that of the system but individual router level can be set in ;; [log..router] LEVEL ;; @@ -581,10 +579,9 @@ ROUTER = console ;; ;; Access Logger (Creates log in NCSA common log format) ;; -;ENABLE_ACCESS_LOG = false -;; ;; Set the log "modes" for the access log (if file is set the log file will default to access.log) -;ACCESS = file +;; Default is empty value, which means that the access log is disabled +;logger.access.MODE = file ;; ;; Sets the template used to create the access log. ;ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"