lumberjack icon indicating copy to clipboard operation
lumberjack copied to clipboard

lumberjack is a log rolling package for Go

Results 92 lumberjack issues
Sort by recently updated
recently updated
newest added

I need to make more open file mode for the created log files so Grafana Alloy running under different group can collect them.

Close command on logger does not close `mill` goroutine Reproducer: ```go package main import ( "time" "gopkg.in/natefinch/lumberjack.v2" ) func RunAndCloseLog() { logSink := &lumberjack.Logger{ Filename: "test.log", MaxSize: 50, // megabytes...

One possible solution to support Open Telemetry's [filelogreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver) would be to have a mode more like [go-cronowriter](https://github.com/utahta/go-cronowriter) by writing directly to the current "backup file" and having Filename be a...

I test in windows environment Integration tests for zap logger and lumberjack-rolling find not working, no rotation - ``` func WithFileRotationP(file string) Option { dir := filepath.Dir(file) if err :=...

Keep reserved space for backup on device.

added RollingInterval feature in order to generate new log file every single hour. RollingInterval is the number of seconds before rotating to a new log file. the old log files...

- Fixes documentation for `MaxSize` parameter. - Fixes comments to match. - Refactors the scaling factor variable so the name matches the contents. - Cleans up some minor godoc formatting...

Hi. I using this lib with logrus to writing log files on **macOS**. When my app is running, and I manually delete the log file, even my app is running...

enhancement

Implemented `SyncWriter` interface. In some scenarios, we need to use the `SyncWriter` interface, such as integrating `lumberjack` and `go.uber.org/zap`.