Skip to content

Releases: cilium/lumberjack

v2.4.1

16 Nov 23:25
6fa4074
Compare
Choose a tag to compare

What's Changed

  • chown: fix missing function on non-linux OS by @devodev in #6

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

04 Nov 14:18
4017b8c
Compare
Choose a tag to compare

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