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
This commit is contained in:
Richard Levitte 2023-11-10 11:59:25 +01:00
parent 666e850975
commit a5eda416a2

View file

@ -560,11 +560,9 @@ LEVEL = Info
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Router Logger ;; Router Logger
;; ;;
;; Switch off the router log ;; Set the log "mode" for the router log (if file is set the log file will default to router.log)
;DISABLE_ROUTER_LOG=false ;; Default is ',', which means that the main logger MODE is used
;; ;logger.router.MODE = file
;; Set the log "modes" for the router log (if file is set the log file will default to router.log)
ROUTER = console
;; ;;
;; The router will log different things at different levels. ;; The router will log different things at different levels.
;; ;;
@ -573,7 +571,7 @@ ROUTER = console
;; * slow routers will be logged at WARN ;; * slow routers will be logged at WARN
;; * failed 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.<mode>.router] LEVEL ;; [log.<mode>.router] LEVEL
;; ;;
@ -581,10 +579,9 @@ ROUTER = console
;; ;;
;; Access Logger (Creates log in NCSA common log format) ;; 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) ;; 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. ;; 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}}" ;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}}"