natefinch / lumberjack

lumberjack is a log rolling package for Go
MIT License
4.8k stars 591 forks source link

version 2 on github does not match examples #15

Closed tvmaly closed 8 years ago

tvmaly commented 8 years ago

It appears that when I try to pass a Filename as in the example using the v2 branch on github, it does not work. I checked the code and the Filename is not present in the v2 branch of github.

log.SetOutput(&lumberjack.Logger{
    Filename: "somefile",
    MaxSize:  10,
})
natefinch commented 8 years ago

Not sure what the problem is, but the field is there: https://github.com/natefinch/lumberjack/blob/v2.0/lumberjack.go#L72

natefinch commented 8 years ago

Did you ever figure this out?

natefinch commented 8 years ago

Closing this for now. Let me know if you still are having problems.