mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	middleware/{log,errors}: output everything to stdout (#684)
Limit the options in both errors and log middleware, just output to stdout and let someone else (journald,docker) care about where to route the logs. This removes syslog and logging to a file. Fixes #573 #602
This commit is contained in:
		| @@ -45,7 +45,7 @@ func TestLogParse(t *testing.T) { | ||||
| 			Format:     CombinedLogFormat, | ||||
| 		}}}, | ||||
| 		{`log example.org. log.txt | ||||
| 			  log example.net accesslog.txt {combined}`, false, []Rule{{ | ||||
| 		log example.net accesslog.txt {combined}`, false, []Rule{{ | ||||
| 			NameScope:  "example.org.", | ||||
| 			OutputFile: "log.txt", | ||||
| 			Format:     DefaultLogFormat, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user