Bring runtime log level changing to the backoffice (using Serilog's LoggingLevelSwitch?) #10448
Replies: 5 comments 4 replies
-
That sounds like an excellent idea indeed! If we could add a dropdown here to do the switch then that could work really nicely! I don't know if @warrenbuckley has some more thoughts on this as he implemented the current logging dashboard to begin with? What happens when the app restarts and reads the config file again? I think it will revert to the previous situation unless the dropdown also updates the config file. However, config changes would probably be overwritten on next deploy. So I guess it would be really good to note, when switching: this is a temporary log level change, it will revert to |
Beta Was this translation helpful? Give feedback.
-
What about similar to Cloudflare, where turning on debug is automatically turned off after five (10?) minutes? No need for an additional input, just make the operation time limited... |
Beta Was this translation helpful? Give feedback.
-
This sounds a good idea and was something I considered at the time, however I can’t remember why I didn’t implement it 🤔 |
Beta Was this translation helpful? Give feedback.
-
In summary, yes, we'd love this feature! To summarize:
For the messages, maybe try ℹ Note this is temporary (when hovered/clicked, explain) |
Beta Was this translation helpful? Give feedback.
-
I thought I'd be able to convert this whole discussion to a feature request, but I guess it's only one of the comments, which is fine, I just linked the new up-for-grabs feature request to this discussion for the full details 👍 #10484 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Serilog supports changing the logging level at runtime.
It would be great if this could be implemented in Umbraco so we could change the logging level via the backoffice. Changing the logging level on the fly would be a great help in debugging problems without having to make config changes, trigger restarts/deployments etc.
Beta Was this translation helpful? Give feedback.
All reactions