Add timestamps to logs
Signed-off-by: Mrunal Patel <mpatel@redhat.com>
This commit is contained in:
		
							parent
							
								
									0c8c09220b
								
							
						
					
					
						commit
						e4b76edd96
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -149,6 +149,13 @@ func main() { | |||
| 			return err | ||||
| 		} | ||||
| 
 | ||||
| 		cf := &logrus.TextFormatter{ | ||||
| 			TimestampFormat: "2006-01-02 15:04:05.000000000Z07:00", | ||||
| 			FullTimestamp:   true, | ||||
| 		} | ||||
| 
 | ||||
| 		logrus.SetFormatter(cf) | ||||
| 
 | ||||
| 		if c.GlobalBool("debug") { | ||||
| 			logrus.SetLevel(logrus.DebugLevel) | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue