Add sensible logging flag to default setup for logger
This commit is contained in:
		
							parent
							
								
									e7919f0535
								
							
						
					
					
						commit
						e39f12f740
					
				| 
						 | 
					@ -27,6 +27,7 @@
 | 
				
			||||||
#logging_max_age = 7
 | 
					#logging_max_age = 7
 | 
				
			||||||
#logging_local_time = true
 | 
					#logging_local_time = true
 | 
				
			||||||
#logging_compress = false
 | 
					#logging_compress = false
 | 
				
			||||||
 | 
					#sensible_logging = false
 | 
				
			||||||
#standard_logging = true
 | 
					#standard_logging = true
 | 
				
			||||||
#standard_logging_format = "[{{.Timestamp}}] [{{.File}}] {{.Message}}"
 | 
					#standard_logging_format = "[{{.Timestamp}}] [{{.File}}] {{.Message}}"
 | 
				
			||||||
#request_logging = true
 | 
					#request_logging = true
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -34,6 +34,7 @@ func loggingFlagSet() *pflag.FlagSet {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	flagSet.Bool("auth-logging", true, "Log authentication attempts")
 | 
						flagSet.Bool("auth-logging", true, "Log authentication attempts")
 | 
				
			||||||
	flagSet.String("auth-logging-format", logger.DefaultAuthLoggingFormat, "Template for authentication log lines")
 | 
						flagSet.String("auth-logging-format", logger.DefaultAuthLoggingFormat, "Template for authentication log lines")
 | 
				
			||||||
 | 
						flagSet.Bool("sensible-logging", false, "Log sensible data")
 | 
				
			||||||
	flagSet.Bool("standard-logging", true, "Log standard runtime information")
 | 
						flagSet.Bool("standard-logging", true, "Log standard runtime information")
 | 
				
			||||||
	flagSet.String("standard-logging-format", logger.DefaultStandardLoggingFormat, "Template for standard log lines")
 | 
						flagSet.String("standard-logging-format", logger.DefaultStandardLoggingFormat, "Template for standard log lines")
 | 
				
			||||||
	flagSet.Bool("request-logging", true, "Log HTTP requests")
 | 
						flagSet.Bool("request-logging", true, "Log HTTP requests")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue