mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
Add {user} placeholder to CommonLogFormat (#1953)
This commit is contained in:
parent
1125a236ea
commit
a74320bf4c
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ const (
|
||||||
// DefaultLogFilename is the default log filename.
|
// DefaultLogFilename is the default log filename.
|
||||||
DefaultLogFilename = "access.log"
|
DefaultLogFilename = "access.log"
|
||||||
// CommonLogFormat is the common log format.
|
// CommonLogFormat is the common log format.
|
||||||
CommonLogFormat = `{remote} ` + CommonLogEmptyValue + " " + CommonLogEmptyValue + ` [{when}] "{method} {uri} {proto}" {status} {size}`
|
CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` {user} [{when}] "{method} {uri} {proto}" {status} {size}`
|
||||||
// CommonLogEmptyValue is the common empty log value.
|
// CommonLogEmptyValue is the common empty log value.
|
||||||
CommonLogEmptyValue = "-"
|
CommonLogEmptyValue = "-"
|
||||||
// CombinedLogFormat is the combined log format.
|
// CombinedLogFormat is the combined log format.
|
||||||
|
|
Loading…
Reference in a new issue