aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-01-12 18:03:47 +0000
committerGravatar GitHub <noreply@github.com> 2018-01-12 18:03:47 +0000
commit05ebfaa36a51cc8f23ec0803b4c2f2d72162314a (patch)
tree5c3a94bab56caff31aaa2a7eaf69c822fd2ca9d6 /plugin
parent850288ecd7fae9cca3350d8f9583f13960647566 (diff)
downloadcoredns-05ebfaa36a51cc8f23ec0803b4c2f2d72162314a.tar.gz
coredns-05ebfaa36a51cc8f23ec0803b4c2f2d72162314a.tar.zst
coredns-05ebfaa36a51cc8f23ec0803b4c2f2d72162314a.zip
plugin/log: add the super useful msg ID into the logs (#1387)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/log/README.md2
-rw-r--r--plugin/log/log.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugin/log/README.md b/plugin/log/README.md
index 75e938e1a..26a79f7f5 100644
--- a/plugin/log/README.md
+++ b/plugin/log/README.md
@@ -75,7 +75,7 @@ The following place holders are supported:
The default Common Log Format is:
~~~ 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
diff --git a/plugin/log/log.go b/plugin/log/log.go
index 297abffd2..247b7355d 100644
--- a/plugin/log/log.go
+++ b/plugin/log/log.go
@@ -78,7 +78,7 @@ type Rule struct {
const (
// 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 = "-"
// CombinedLogFormat is the combined log format.