-
Notifications
You must be signed in to change notification settings - Fork 272
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
Seeing double times printed out to stdout #107
Comments
I have a similar problem. The time does not appear in my format string (and I don't want it to be there) but I still see the time printed out. |
The underlying LogBackend, even though it isn't very well documented, is basically a golang standard library logger. The default logger adds its own time at the beginning of log lines, which you can disable by setting the If that's too theoretical, this is how to do it with
This will make ALL logging get rid of the time in the beginning of the line, so you can add your own in the format. |
(note that the example frontierpsycho gave is how it's done in the example in the readme, too) |
Oh, right, I didn't realize! Plus, opening a file isn't necessary, Stdout or Stderr are better choices for an example :) |
That same case here
The output looks like below, but I don't want the double time show in log, do I missing something?
|
Looks like some guy already works on it #39. |
What's the status of this? Will it not be fixed? |
@fortuna There's nothing to fix; see frontierpsycho's comment from last year. |
I'm seeing the time printed out twice when doing a
logger.Debugf
2016/12/30 18:47:34 2016-12-30T18:47:34.318:
logging.MustStringFormatter(
%{color}%{time:2006-01-02T15:04:05.000}: %{module} -> %{message} %{color:reset})
Suggestions?
The text was updated successfully, but these errors were encountered: