Releases: cilium/lumberjack
v2.4.1
What's Changed
2.4.0 release introduced a new chownWithMode function, but only for Linux - this broke builds on other OS. This release fixes that - chown is no-op on non-Linux OS as before, but lumberjack builds successfully.
Full Changelog: v2.4.0...v2.4.1
v2.4.0
What's Changed
Allow changing file permissions on rotate by @lambdanis in #5
This release changes the behaviour when Logger.FileMode field is set, but a log file with different permissions existed before the logger started. Before, permissions of the existing file were preserved, even after log rotation, so Logger.FileMode field was effectively ignored. Now in such case file permissions are not changed immediately, but after log rotation the new file has permissions corresponding to Logger.FileMode field. In case Logger.FileMode field is unset, the existing file permissions are preserved like before.
Full Changelog: v2.3.0...v2.4.0