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

Apache Combined Log Format output #121

Open
derekm opened this issue Jan 24, 2018 · 4 comments
Open

Apache Combined Log Format output #121

derekm opened this issue Jan 24, 2018 · 4 comments

Comments

@derekm
Copy link
Contributor

derekm commented Jan 24, 2018

It would be really slick if Hammock could produce NCSA/Apache Common Log Format and/or Combined Log Format for its web-spi-using modules via log4j.

Jetty, for example, supports common & combined log formats thusly:
https://stackoverflow.com/questions/19458875/how-do-i-configure-embedded-jetty-server-to-log-all-requests

@johnament
Copy link
Member

What if, I can look for a bean of type RequestLog and set that on the jetty instance? I'm not sure there's an equivalent for undertow. Or maybe I don't get what you're saying quite yet.

@derekm
Copy link
Contributor Author

derekm commented Jan 28, 2018

Or if there's a way to log generically for all web-spi users where the system administrator has an easy way to define access_log and error_log files in the style of an old school Apache HTTP Server.

Like something webalizer or awstats could parse.

@johnament
Copy link
Member

Oh ok, I see what you want to do now. I know how to do this in undertow, and you've linked to how to do it in jetty. Need to see how tomcat does it. But should be doable.

@derekm
Copy link
Contributor Author

derekm commented Jan 28, 2018

The way this answer shows a log4j wrapper might be a neat way to go about it: https://stackoverflow.com/a/38783338

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