File tree 2 files changed +4
-2
lines changed
docs/content/doc/advanced 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ multiple subloggers that will log to files.
66
66
67
67
By default Macaron will log to its own go ` log ` instance. This writes
68
68
to ` os.Stdout ` . You can redirect this log to a Gitea configurable logger
69
- through setting the ` ENABLE_MACARON_REDIRECT ` setting in the ` [log] `
69
+ through setting the ` REDIRECT_MACARON_LOG ` setting in the ` [log] `
70
70
section which you can configure the outputs of by setting the ` MACARON `
71
71
value in the ` [log] ` section of the configuration. ` MACARON ` defaults
72
72
to ` file ` if unset.
@@ -89,7 +89,7 @@ log using the value: `MACARON = ,`
89
89
90
90
There are two types of Router log. By default Macaron send its own
91
91
router log which will be directed to Macaron's go ` log ` , however if you
92
- ` ENABLE_MACARON_REDIRECT ` you will enable Gitea's router log. You can
92
+ ` REDIRECT_MACARON_LOG ` you will enable Gitea's router log. You can
93
93
disable both types of Router log by setting ` DISABLE_ROUTER_LOG ` .
94
94
95
95
If you enable the redirect, you can configure the outputs of this
Original file line number Diff line number Diff line change @@ -211,6 +211,8 @@ func newAccessLogService() {
211
211
212
212
func newRouterLogService () {
213
213
Cfg .Section ("log" ).Key ("ROUTER" ).MustString ("console" )
214
+ // Allow [log] DISABLE_ROUTER_LOG to override [server] DISABLE_ROUTER_LOG
215
+ DisableRouterLog = Cfg .Section ("log" ).Key ("DISABLE_ROUTER_LOG" ).MustBool (DisableRouterLog )
214
216
215
217
if ! DisableRouterLog && RedirectMacaronLog {
216
218
options := newDefaultLogOptions ()
You can’t perform that action at this time.
0 commit comments