server/gitea: Reconfigured log to be minimal and adapted to systemd

dehydrated
Felix Stupp 5 years ago
parent 85028e1dcb
commit 2eaf8034f7
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -561,14 +561,17 @@ ROOT_PATH =
MODE = console
; Buffer length of the channel, keep it as it is if you don't know what it is.
BUFFER_LEN = 10000
REDIRECT_MACARON_LOG = false
MACARON = file
REDIRECT_MACARON_LOG = true
MACARON = ,
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info"
ROUTER_LOG_LEVEL = Info
ROUTER = console
ROUTER_LOG_LEVEL = Debug
ROUTER = ,
ENABLE_ACCESS_LOG = false
ACCESS_LOG_TEMPLATE = {% raw %}{{.Ctx.RemoteAddr}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}\" \"{{.Ctx.Req.UserAgent}}"{% endraw %}
ACCESS = file
ACCESS = ,
ENABLE_XORM_LOG = true
XORM = ,
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
LEVEL = Info
; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None"
@ -583,8 +586,10 @@ COLORIZE = false
; For "console" mode only
[log.console]
FLAGS = level
LEVEL =
STDERR = false
COLORIZE = true
; For "file" mode only
[log.file]

Loading…
Cancel
Save