Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
05ebfaa3
You need to sign in or sign up before continuing.
Commit
05ebfaa3
authored
Jan 12, 2018
by
Miek Gieben
Committed by
GitHub
Jan 12, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
plugin/log: add the super useful msg ID into the logs (#1387)
parent
850288ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
plugin/log/README.md
plugin/log/README.md
+1
-1
plugin/log/log.go
plugin/log/log.go
+1
-1
No files found.
plugin/log/README.md
View file @
05ebfaa3
...
@@ -75,7 +75,7 @@ The following place holders are supported:
...
@@ -75,7 +75,7 @@ The following place holders are supported:
The default Common Log Format is:
The default Common Log Format is:
~~~
txt
~~~
txt
`{remote} - [{when}] "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}`
`{remote} - [{when}]
{>id}
"{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}`
~~~
~~~
## Examples
## Examples
...
...
plugin/log/log.go
View file @
05ebfaa3
...
@@ -78,7 +78,7 @@ type Rule struct {
...
@@ -78,7 +78,7 @@ type Rule struct {
const
(
const
(
// CommonLogFormat is the common log format.
// CommonLogFormat is the common log format.
CommonLogFormat
=
`{remote} `
+
CommonLogEmptyValue
+
` [{when}] "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}`
CommonLogFormat
=
`{remote} `
+
CommonLogEmptyValue
+
` [{when}]
{>id}
"{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}`
// 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