Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to test/show lumberjack log rotation in action? #150

Open
yash97 opened this issue Jan 24, 2022 · 1 comment
Open

How to test/show lumberjack log rotation in action? #150

yash97 opened this issue Jan 24, 2022 · 1 comment
Labels

Comments

@yash97
Copy link

yash97 commented Jan 24, 2022

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.

@yash97 yash97 changed the title How to test/Show lumberjack log rotation in action? How to test/show lumberjack log rotation in action? Jan 24, 2022
@natefinch
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants