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

File system logs rotate daily but never delete themselves #95

Open
SeedyROM opened this issue Dec 2, 2022 · 1 comment
Open

File system logs rotate daily but never delete themselves #95

SeedyROM opened this issue Dec 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SeedyROM
Copy link
Collaborator

SeedyROM commented Dec 2, 2022

Problem:

Right now the logging setup to ~/.croncat/logs will make a new file daily but never cleans up after itself.

Solution:

Truncate logs after n days, maybe make this configurable? (Default to 7 days?).

Right now file-append from tracing has no idea to remove old logs? Maybe create a log clean up task? Need to think this through.

Tasks:

TBD

@SeedyROM SeedyROM added the bug Something isn't working label Dec 2, 2022
@SeedyROM SeedyROM added this to the 🚲 Alpha milestone Dec 2, 2022
@SeedyROM SeedyROM self-assigned this Dec 2, 2022
@SeedyROM SeedyROM changed the title [BUG]: File system logs rotate daily but never delete themselves File system logs rotate daily but never delete themselves Dec 2, 2022
@TrevorJTClarke TrevorJTClarke modified the milestones: 🚲 Alpha, 🚗 Beta Dec 2, 2022
@SeedyROM
Copy link
Collaborator Author

So it turns out file-appender from tracing actually has a max_files field that can we set (see).

However, it's never exposed at the library level...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants