log icon indicating copy to clipboard operation
log copied to clipboard

Can i set time format , instead of just the time passed since beginning of execution.

Open Wang-Kai opened this issue 6 years ago • 1 comments

Just like :

// init log lib setting
logFormatter := new(log.TextFormatter)
logFormatter.TimestampFormat = "2006-01-02 15:04:05"
logFormatter.FullTimestamp = true
log.SetFormatter(logFormatter)

Wang-Kai avatar Mar 22 '18 03:03 Wang-Kai

Not at the moment, might have to copy/paste the implementation and change whatever you'd like

tj avatar Mar 22 '18 17:03 tj