APIs for Changing log-level
Previously, when you wanted to change a log level for a class, you had to change it in the logback file and restart the server to get the updates. This was taking a lot of time and effort in this process.
To overcome this issue, the following log-level APIs are introduced in this release:
- Get all logger details
curl -X 'GET' \ 'http://<host>:<port>/management/loggers' \ -H 'accept: */*'
- Get logger for a specific class
curl -X 'GET' \ 'http://<host>:<port>/management/loggers/com.tib.fom' \ -H 'accept: */*'
- Change log level for a specific class
curl --location --request POST \ 'http://<host>:<port>/management/loggers/com.tib.fom' \ --header 'Content-Type: application/json' \ --data-raw ' {"configuredLevel": "DEBUG"}'
Subtopics