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

Is the file deletion obligatory? #26

Closed
PhilVince96 opened this issue May 16, 2024 · 2 comments
Closed

Is the file deletion obligatory? #26

PhilVince96 opened this issue May 16, 2024 · 2 comments

Comments

@PhilVince96
Copy link

PhilVince96 commented May 16, 2024

I want the timestamp suffix with an hourly rotation as ContentLimit::Time and I can only choose between AppendTimestamp(FileLimit::MaxFile(usize)) and AppendTimestamp(FileLimit::Age(Duration)).
From the documentation I am not sure if I can opt out of deleting.
And one more question: Is the first file always written without the timestamp?

@Ploppz
Copy link
Collaborator

Ploppz commented May 16, 2024

I'm adding a FileLimit::Unlimited. Will publish soon.

The first file is indeed always written without a suffix/timestamp. It gets the suffix when it is rotated. So in the case of timestamp suffix, the suffix signifies the last time of writing.

@Ploppz
Copy link
Collaborator

Ploppz commented May 17, 2024

It was published btw, as 0.7.6.
Please feel free to continue the discussion about suffix on the current file, perhaps in a new issue.

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

No branches or pull requests

2 participants