jambonz / jambonz-webapp

A simple provisioning web app for jambonz
MIT License
5 stars 24 forks source link

Allow account to set a log level for application logs #456

Open davehorton opened 1 month ago

davehorton commented 1 month ago

A great suggestion was made by a customer recently. For troubleshooting purposes, it would be great to allow someone in the portal to set the loglevel for the account. This could be a checkbox to enable debug logging. This log level would apply specifically to the jambonz-feature-server, sbc-inbound, and sbc-outbound since those are the logs we use most often in troubleshooting call issues. Those corresponding apps would retrieve the log level as part of the current account retrieval and then set the pino loglevel accordingly, just for that session.

That way we can get debug logs for one customer without having to turn up for all, and also without having to restart the apps.

As part of this, in system setttings we should probably have a setting for default loglevel - dropdown of info or debug, to set/change the system wide settings.

xquanluu commented 1 month ago

Tested them all on jambonz.me