-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Option to log all server requests #885
Comments
Hey a log-all-requests flag is a red flag for me. If anything this is trace log level. What's your use case for it? |
Here are a few use cases that have come up for me.
|
Each request that Tegola returns a header that tells you if it's a Cache hit or not. |
There have been a couple times during debugging where I've found it extremely helpful to have the Tegola tile server log all incoming requests, so I'd like to add it as a CLI option.
I'm happy to contribute this feature, but I'd like some input on the preferred implementation method. Personally, when I was looking to see if this was already implemented, I first tried starting the server with
--log-level=DEBUG
, and then--log-level=TRACE
. So my preference would be to addlog.Debug
statements to request handlers, middleware, etc.Adding a
--log-all-requests
flag also seems reasonable.Any thoughts/preferences?
The text was updated successfully, but these errors were encountered: