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

Change log level at runtime #155

Open
cioboteacristian opened this issue Feb 12, 2020 · 3 comments
Open

Change log level at runtime #155

cioboteacristian opened this issue Feb 12, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@cioboteacristian
Copy link

Feature request

It would be very useful to be able to change the log level at runtime. For example, we started our service with LOG_LEVEL=info. But, we've observed that we have a bug in our service, and we would like to get more data on our service by switching the LOG_LEVEL=debug for a couple of minutes and analyze the logs.

Describe the solution

A possible solution would be to have an admin endpoint /admin/log?level=TRUE. We need to investigate how to propagate this change to patron log and handle this "state"

An example of such feature is in Dropwizard, a Java REST WS: https://github.com/stuartgunter/dropwizard-logging-config/blob/master/README.md#configure-a-user-defined-log-level-for-a-single-logger, where you can change loglevel, but also log implementation on the fly.

@Stefos
Copy link

Stefos commented May 25, 2020

I'd like to have a look at this.

@mantzas mantzas added the enhancement New feature or request label Oct 20, 2020
@tpaschalis tpaschalis added this to the Unplanned milestone Oct 20, 2020
@oss92
Copy link

oss92 commented Jun 22, 2021

Is there any update on that one? It seems like a very nice addition and we often need it.

@mantzas
Copy link

mantzas commented Jun 22, 2021

@oss92 we had @Stefos some time ago interested in this. Maybe if this is something that you can discuss with him?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants