Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Wang-Kai opened this issue Mar 22, 2018 · 1 comment

Comments

@Wang-Kai
Copy link

Just like :

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

tj commented Mar 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants