natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.76k stars 585 forks source link

Lumberjack module logging wrong year #128

Closed reversekick closed 3 years ago

reversekick commented 3 years ago

time="4040-03-04 00:35:45.303004" level=info msg="Current Connectivity state SUCCESS"

If you see the above -- the Year is wrong the reason for this is -- likely an issue in the library ? https://play.golang.org/p/MwIcUG74NBD

2rigor commented 3 years ago

the same as at https://github.com/sirupsen/logrus/issues/1242

natefinch commented 3 years ago

I literally just use time.now. It must be the system clock is wrong.

natefinch commented 3 years ago

Oh yeah, looking at the other bug... You have to read the time formatting very carefully. If you want a 4 digit year. The format should say 2006

reversekick commented 3 years ago

Initially thought that it was Lumberjack issue & had openned it here and later found that is is comming form siruspen/logrus and openned there.. Forgot to close here.