Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
a74320bf
Commit
a74320bf
authored
Dec 17, 2017
by
magikstm
Committed by
Toby Allen
Dec 17, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add {user} placeholder to CommonLogFormat (#1953)
parent
1125a236
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
caddyhttp/log/log.go
caddyhttp/log/log.go
+1
-1
No files found.
caddyhttp/log/log.go
View file @
a74320bf
...
@@ -91,7 +91,7 @@ const (
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment