mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	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:
		| @@ -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 | ||||||
|  | } | ||||||
| ~~~ | ~~~ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user