lumberjack
lumberjack copied to clipboard
lumberjack is a log rolling package for Go
-rw-r--r-- 1 root root 12M Jan 2 17:08 master-2019-01-02T09-08-11.581.log -rw-r--r-- 1 root root 12M Jan 2 17:08 master-2019-01-02T09-08-55.835.log -rw-r--r-- 1 root root 12M Jan 2 17:09 master-2019-01-02T09-09-36.542.log -rw-r--r-- 1 root...
millrun goroutine leak. I use [zap](https://github.com/uber-go/zap/blob/master/FAQ.md) to wrap lumberjack, my code is following ```go w := zapcore.AddSync(&lumberjack.Logger{ Filename: "/var/log/myapp/foo.log", MaxSize: 500, // megabytes MaxBackups: 3, MaxAge: 28, // days })...
Related to #65, making it a tiny bit difficult to continue using this excellent logging library in the age of Go modules. ``` * (HEAD -> v2.0, origin/v2.0, origin/HEAD)94d9e49: Deen...
Note that in the `go.mod` and `go.sum` files there are a few other modules listed, which are listed because Go v1.12 and above include the versions of dependencies of the...
Hi. Can you clarify the statement "Lumberjack assumes that only one process is writing to the output files. Using the same lumberjack configuration from multiple processes on the same machine...
Using Lumberjack v2: `gopkg.in/natefinch/lumberjack.v2 v2.0.0` ``` logFile := &lumberjack.Logger{ Filename: "/unwriteable/file.log", MaxSize: 10, // megabytes MaxBackups: 3, MaxAge: 28, //days Compress: true, } ``` Given that "/unwriteable/file.log" has 444 permissions,...
Currently, every instance of a lumberjack logger that has ever performed a write will have an associated running goroutine. Because this goroutine references the logger, the logger is never garbage-collected,...
Hello. I need to run a function after logFile has been rotated. I don't see any way to do it in the code, so I implemented it myself. There are...