proxy: output JSON logs
This commit is contained in:
		| @ -59,6 +59,7 @@ func getCommonOptions() *options.Options { | |||||||
| } | } | ||||||
|  |  | ||||||
| func doGlobalSetup(config map[string]interface{}) { | func doGlobalSetup(config map[string]interface{}) { | ||||||
|  | 	log.SetFormatter(&log.JSONFormatter{}) | ||||||
| 	switch config[ConfigLogLevel].(string) { | 	switch config[ConfigLogLevel].(string) { | ||||||
| 	case "debug": | 	case "debug": | ||||||
| 		log.SetLevel(log.DebugLevel) | 		log.SetLevel(log.DebugLevel) | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer