Open sequix opened 3 years ago
If lumberjack has a "Cleaner" or "OnRollover" callback, it will be easy.
I implemented on my own filewriter, https://github.com/phuslu/log/blob/master/file.go#L191-L212
Note: the w.Cleaner
callback awares gz files and their size, so you could decide what you will do.
If lumberjack has a "Cleaner" or "OnRollover" callback, it will be easy.
I implemented on my own filewriter, https://github.com/phuslu/log/blob/master/file.go#L191-L212 Note: the
w.Cleaner
callback awares gz files and their size, so you could decide what you will do.
Great logger you did, I will use the filewriter you wrote : )
just finished the rotater based on @phuslu's job:
https://github.com/sequix/sup/blob/main/pkg/rotate/rotate.go
nice and congrats, i believe my file writer implementation is easy modified and simple enough to math with v3 Work Thread point 5
From I know gzip support this kind of usage:
And lumberjack compresses each log backups only, no merging performed here, leaving the gzip backups deleted before they reach the space limit.
And this is my config, which specify 128M size limit, but gzip backups only reach to 18M or so : (
Will you guys consider this is a feature Todo?