plugin/log: remove need to specify stdout (#1221)

* plugin/log: remove need to specify stdout

Since log will only be output to stdout is doesn't make sense to
specify it in Corefile.

Fixes: #1218

* fixup! plugin/log: remove need to specify stdout
This commit is contained in:
Christian Nilsson
2017-11-13 10:23:27 +01:00
committed by Miek Gieben
parent 9b8ee1c119
commit 46a187df8f
4 changed files with 29 additions and 52 deletions

View File

@@ -10,14 +10,10 @@ log
* With no arguments, a query log entry is written to *stdout* in the common log format for all requests
~~~ txt
log [stdout]
~~~
Or if you want/need slightly more control:
~~~ txt
log [NAME] stdout [FORMAT]
log [NAME] [FORMAT]
~~~
* `NAME` is the name to match in order to be logged
@@ -26,7 +22,7 @@ log [NAME] stdout [FORMAT]
You can further specify the class of responses that get logged:
~~~ txt
log [NAME] stdout [FORMAT] {
log [NAME] [FORMAT] {
class [success|denial|error|all]
}
~~~
@@ -88,7 +84,7 @@ Custom log format, for all zones (`.`)
~~~ corefile
. {
log . stdout "{proto} Request: {name} {type} {>id}"
log . "{proto} Request: {name} {type} {>id}"
}
~~~
@@ -96,7 +92,7 @@ Only log denials for example.org (and below to a file)
~~~ corefile
. {
log example.org stdout {
log example.org {
class denial
}
}