When you try to change a logging level dynamically with JMX (to avoid a restart operation of Petals), you have to use the
Petals.service.Logger MBean.
The operation to invoke is called
setLoggerLevel.
However, when you set an incorrect logger name, it says everything went fine.
When you check in Petals, no change has been done.
Example:
- Valid logger name: INFO, Petals.Container.Components.petals-bc-sql
- Invalid logger name: INFO, logger.Petals.Container.Components.petals-bc-sql.level
- Invalid logger name: INFO, logger.Petals.Container.Components.petals-bc-sql
It would be convenient if Petals was checking that an effective change has been made before saying everything worked.