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

Curious if you'd integrate this with Caddy! #19

Open
francislavoie opened this issue Aug 18, 2022 · 4 comments
Open

Curious if you'd integrate this with Caddy! #19

francislavoie opened this issue Aug 18, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request integration integration with some other tools and frameworks

Comments

@francislavoie
Copy link

I really like the look of this!

I was curious to see if you'd be interested in playing with this with Caddy; it seems like it would integrate nicely, since Caddy uses Zap for logging everything.

See https://caddyserver.com/docs/logging which TL;DR explains why Common Log sucks and why structured logging is what we chose for Caddy.

Caddy uses a plugin system and you can provide a logging encoder module (formatter) by implementing a module in the caddy.logging.encoders.* namespace. The ones that exist are listed here: https://caddyserver.com/docs/json/logging/logs/encoder/, and docs on extending Caddy here https://caddyserver.com/docs/extending-caddy

@erudenko
Copy link
Member

Hi @francislavoie

I am a big lover of Caddy, I will look at possible Caddy integration.

@erudenko erudenko self-assigned this Aug 20, 2022
@erudenko erudenko added enhancement New feature or request integration integration with some other tools and frameworks labels Aug 20, 2022
@erudenko
Copy link
Member

erudenko commented Mar 9, 2023

Hi @francislavoie

Do you have any ideas why it could be useful?

@francislavoie
Copy link
Author

It would be cool to have an alternative pretty formatter specifically for access logs. That's something lacking in Caddy.

@erudenko
Copy link
Member

erudenko commented Mar 9, 2023

@francislavoie yep, good idea. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request integration integration with some other tools and frameworks
Projects
Status: Todo
Development

No branches or pull requests

2 participants