Skip to content

Advanced File Retainment #268

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

Closed
sirmeepington opened this issue Nov 30, 2022 · 2 comments
Closed

Advanced File Retainment #268

sirmeepington opened this issue Nov 30, 2022 · 2 comments

Comments

@sirmeepington
Copy link

Hi,
Additional to the retainedFileCountLimit, is there a way to auto-compress after X amount of days/files, and then delete after an additional amount of days/files? If not, is there a community fork of the sink that implements this?

For example, after 7 days the logs are compressed, and after 30 days they're deleted.

@nblumhardt
Copy link
Member

Hi! Please see #48 and https://github.com/cocowalla/serilog-sinks-file-gzip; thanks.

@nblumhardt nblumhardt closed this as not planned Won't fix, can't repro, duplicate, stale Nov 30, 2022
@cocowalla
Copy link
Contributor

If you need something more than straight compression, cocowalla/serilog-sinks-file-archive provides both compression and retention settings.

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

No branches or pull requests

3 participants