Commit 296c5a0c authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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`.
parent 176e0916
...@@ -2,26 +2,21 @@ ...@@ -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] errors
~~~ ~~~
* **FILE** is the log file to create (or append to). The *only* valid name for **FILE** is *stdout*
## Examples ## Examples
Log errors to *stdout*. Use the *whoami* to respond to queries and Log errors to standard output.
~~~
errors
~~~
Log errors to *stdout*.
~~~ ~~~ corefile
errors stdout . {
whoami
errors
}
~~~ ~~~
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