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

caddyhttp: General improvements to access logging #3301

Merged
merged 4 commits into from
Apr 28, 2020
Merged

caddyhttp: General improvements to access logging #3301

merged 4 commits into from
Apr 28, 2020

Conversation

mholt
Copy link
Member

@mholt mholt commented Apr 22, 2020

Even though any logs can just be ignored, most users don't seem to like configuring an access log to go to a file only to have it doubly appear in the default log.

This also fixes a few little bugs related to access log controls in the Caddyfile. Users now have the ability for fine-grained customization over which requests to which hosts get access-logged.

Related to:

Even though any logs can just be ignored, most users don't seem to like
configuring an access log to go to a file only to have it doubly appear
in the default log.

Related to:
- #3294
- https://caddy.community/t/v2-logging-format/7642/4?u=matt
- https://caddy.community/t/caddyfile-questions/7651/3?u=matt
@mholt mholt modified the milestones: 2.1, v2.0.0 Apr 27, 2020
@mholt mholt changed the title httpcaddyfile: Exclude access logs written to files from default log caddyhttp: General improvements to access logging Apr 27, 2020
francislavoie
francislavoie previously approved these changes Apr 27, 2020
Copy link
Member

@francislavoie francislavoie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all makes sense to me! Just one comment

modules/caddyhttp/server.go Outdated Show resolved Hide resolved
@mholt mholt removed the under review 🧐 Review is pending before merging label Apr 28, 2020
@mholt mholt removed the request for review from mohammed90 April 28, 2020 14:04
@mholt mholt merged commit 10db570 into master Apr 28, 2020
@mholt mholt deleted the accesslogs branch April 28, 2020 14:32
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

Successfully merging this pull request may close these issues.

2 participants