mirror of
https://github.com/coredns/coredns.git
synced 2025-11-17 09:22:24 -05:00
Fix all the log replacers
This commit is contained in:
@@ -47,7 +47,7 @@ The following place holders are supported:
|
||||
* `{port}`: client's port.
|
||||
* `{rcode}`: response RCODE.
|
||||
* `{size}`: response size.
|
||||
* `{duration}`: response duration (in seconds).
|
||||
* `{duration}`: response duration.
|
||||
* `{>bufsize}`: the EDNS0 buffer size advertized by the client.
|
||||
* `{>do}`: is the EDNS0 DO (DNSSEC OK) bit set.
|
||||
* `{>id}`: query ID
|
||||
|
||||
@@ -58,7 +58,7 @@ const (
|
||||
// DefaultLogFilename is the default log filename.
|
||||
DefaultLogFilename = "query.log"
|
||||
// CommonLogFormat is the common log format.
|
||||
CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] "{type} {name} {proto}" {rcode} {size}`
|
||||
CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] "{type} {name} {proto} {>do} {>bufsize}" {rcode} {size} {duration}`
|
||||
// CommonLogEmptyValue is the common empty log value.
|
||||
CommonLogEmptyValue = "-"
|
||||
// CombinedLogFormat is the combined log format.
|
||||
|
||||
Reference in New Issue
Block a user