mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-12-26 22:51:22 -05:00
docs: 1.20: cherry-pick admin/logging-documentation.md
* 29194a9dd6f5d8a98096a4a01c33d9be89616ed7
This commit is contained in:
parent
fd40096085
commit
c676a0b8ce
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ log using the value: `ACCESS = ,`
|
||||||
|
|
||||||
This value represent a go template. It's default value is:
|
This value represent a go template. It's default value is:
|
||||||
|
|
||||||
`{{.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}}"`
|
`{{.Ctx.RemoteHost}} - {{.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}}"`
|
||||||
|
|
||||||
The template is passed following options:
|
The template is passed following options:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue