How to expose JMXConfigurator logback operations in Restful Webservices?

225 Views Asked by At

I need to change different log levels in runtime and I want to control the log levels changes by using restful webservices, but I got struck how to achieve this . can any of you help me on this?

From the below Image from Jconsole you can see log back operations like setLoggerLevel & getLoggerLevels. JMX Configurator-JConsole

I need to expose these operations via Restful Webservices instead of accessing it from Jconsole.

1

There are 1 best solutions below

0
On

Take a look at https://jolokia.org. It exposes the JVM's JMX services via REST.