coredns/middleware/errors
Miek Gieben 296c5a0c1c 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`.
2017-09-11 06:51:24 +01:00
..
errors.go all: gometalinter (#843) 2017-08-06 05:54:24 -07:00
errors_test.go middleware/{log,errors}: output everything to stdout (#684) 2017-05-31 20:28:53 +01:00
README.md mw/errors: doc (#1057) 2017-09-11 06:51:24 +01:00
setup.go middleware/{log,errors}: output everything to stdout (#684) 2017-05-31 20:28:53 +01:00
setup_test.go middleware/{log,errors}: output everything to stdout (#684) 2017-05-31 20:28:53 +01:00

errors

errors enables error logging.

Any errors encountered during the query processing will be printed to standard output.

Syntax

errors

Examples

Use the whoami to respond to queries and Log errors to standard output.

. {
    whoami
    errors
}