Commit 05ebfaa3 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

plugin/log: add the super useful msg ID into the logs (#1387)

parent 850288ec
...@@ -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
......
...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment