mw/errors: doc (#1057)

Remove the [FILE] option from the docs, we still allow it, but this one
value that we allow now *stdout* isn't shown anymore.

Also test the snippet with readme_test.go by adding `~~ corefile`.
This commit is contained in:
Miek Gieben
2017-09-11 06:51:24 +01:00
committed by GitHub
parent 176e0916fe
commit 296c5a0c1c

View File

@@ -2,26 +2,21 @@
*errors* enables error logging. *errors* enables error logging.
Any errors encountered during the query processing will be printed on standard output. Any errors encountered during the query processing will be printed to standard output.
## Syntax ## Syntax
~~~
errors [FILE]
~~~
* **FILE** is the log file to create (or append to). The *only* valid name for **FILE** is *stdout*
## Examples
Log errors to *stdout*.
~~~ ~~~
errors errors
~~~ ~~~
Log errors to *stdout*. ## Examples
~~~ Use the *whoami* to respond to queries and Log errors to standard output.
errors stdout
~~~ corefile
. {
whoami
errors
}
~~~ ~~~