quarkus-logging-manager icon indicating copy to clipboard operation
quarkus-logging-manager copied to clipboard

Ability to restore log levels

Open oscarfh opened this issue 4 years ago • 4 comments

As a user, I want to be able to restore log levels, so everything is back to how it was configured when the service started

Notes:

  • If someone else made some change before I open the UI and I reset, everything is back to what it was configured
  • The original value is the value in the "configured" field for each logger

oscarfh avatar Jan 19 '21 19:01 oscarfh

I'll add this. Be able to store the logs levels in json file on disk. When the application start, this extension load the file if the file is present. If the file is not present or deleted.. we have the default value.

We have that feature in our "Springboot" application and we need to have that in Quarkus too. We are using Kubernetes with Persistent volumes, so when the pod restart we don't loose our logging levels.

survivant avatar Mar 05 '21 20:03 survivant

The idea here is to allow changing of log levels in runtime (like we currently do) then with one button restore to what the levels was. To permanently change log levels, you can use application.properties.

phillip-kruger avatar Mar 08 '21 09:03 phillip-kruger

The goal is not to have to modify the code. Suppose you want to trace something live. You could set the logs to trace level live, kill the pod and check the results. You dont want to package you application again.

Le lun. 8 mars 2021 04 h 15, Phillip Krüger [email protected] a écrit :

The idea here is to allow changing of log levels in runtime (like we currently do) then with one button restore to what the levels was. To permanently change log levels, you can use application.properties.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quarkiverse/quarkus-logging-manager/issues/40#issuecomment-792606099, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABO3B2G6GA3LN75BYZPMCLTCSIRLANCNFSM4WJJD7NA .

survivant avatar Mar 08 '21 11:03 survivant

Well, that seems to be more a config issue than a logger-manager. The way to configure logging in Quarkus is via config, you might want to then look at an external ConfigSource that you can change without having to repackage the application.

phillip-kruger avatar Mar 08 '21 13:03 phillip-kruger