lumberjack
lumberjack copied to clipboard
How to test/show lumberjack log rotation in action?
As from the configuration, log size is int MB so it will take time to write 1mb of logs and max age is also 1 day. So how do I add lumberjack in my codebase and test that it is successfully rotating logs or demo it to other folks that it works.
Write a meg of data, change your computer clock. (note: v3 will let you do fine-grained size and max age settings, to make that easier)