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

log,errors: Option to compress rolled log files #1728

Closed
mholt opened this issue Jun 24, 2017 · 0 comments
Closed

log,errors: Option to compress rolled log files #1728

mholt opened this issue Jun 24, 2017 · 0 comments
Labels
good first issue 🐤 Good for newcomers

Comments

@mholt
Copy link
Member

mholt commented Jun 24, 2017

Lumberjack recently added the ability to compress rotated log files using gzip. It'd be useful if we could expose that feature in the Caddyfile with a rotation directive similar to rotate_size (which would be before compression), called rotate_gzip or rotate_compress.

The only compression option is gzip. This is enabled by setting the Compress field to true.

The log and errors directives will use this. We do not need to change the core process log's settings; right now there's no way to configure that log anyway (other than its filename).

This enhancement is very simple to implement, so I am reserving this for newcomers to the project!

NOTE: This will require updating the vendored dependency. We use gvt for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue 🐤 Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant