Changing logging levels without a server restart
A problem that appears on a running server is often hard to catch: the logs do not contain enough details, and a restart to turn on more detailed logging can make the problem disappear. In the next release of Mercury DB (HgDB) 3.0, the system administrator will be able to change logging levels at runtime, without restarting the server.
What the new feature offers:
✅ a REST service with operations to get the logging level of a category, change it and search for categories (the result is limited to 30 categories),
✅ a simple administration panel in the mercury-ws-app application, available after logging in with a form (like the page of case types in Swagger UI), where the levels can be searched and changed in a table,
✅ access only for users with the system administrator role (mrc-sysadmin, a scope of the OAuth token),
✅ every change is written to the server log together with the name of the user.
The change applies to the node that answered and does not survive its restart, so it is a safe tool for a time-limited analysis of a problem. The description of the service, with request and response examples, is in the documentation: Changing logging levels at runtime.