mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-29 01:04:15 -04:00 
			
		
		
		
	plugin/log: add the super useful msg ID into the logs (#1387)
This commit is contained in:
		| @@ -75,7 +75,7 @@ The following place holders are supported: | ||||
| The default Common Log Format is: | ||||
|  | ||||
| ~~~ txt | ||||
| `{remote} - [{when}] "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}` | ||||
| `{remote} - [{when}] {>id} "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}` | ||||
| ~~~ | ||||
|  | ||||
| ## Examples | ||||
|   | ||||
| @@ -78,7 +78,7 @@ type Rule struct { | ||||
|  | ||||
| const ( | ||||
| 	// CommonLogFormat is the common log format. | ||||
| 	CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}` | ||||
| 	CommonLogFormat = `{remote} ` + CommonLogEmptyValue + ` [{when}] {>id} "{type} {class} {name} {proto} {size} {>do} {>bufsize}" {rcode} {>rflags} {rsize} {duration}` | ||||
| 	// CommonLogEmptyValue is the common empty log value. | ||||
| 	CommonLogEmptyValue = "-" | ||||
| 	// CombinedLogFormat is the combined log format. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user