Oliver Henlich
Oliver Henlich

Reputation: 315

Has Logback's JMX configuration feature gone for good?

We used to be able to change our logback configuration at runtime via a JMX MBean. This used to be enabled by adding <jmxConfigurator/> to the config file.

This doesn't work any more and on startup logback reports

Ignoring unknown property [jmxConfigurator] in [ch.qos.logback.classic.LoggerContext]

I can see that the related classes were deleted in a commit related to LOGBACK-1655

I can also see that the documentation refers to this as a "Legacy" feature

What I can't work out is if this functionality was removed without replacement? Is there some other library we need to pull in to get JMX functionality back?

Upvotes: 0

Views: 655

Answers (2)

MJB
MJB

Reputation: 9399

Haven't tried it but https://github.com/Cosium/jmx-configurator-for-logback looks like it restores it.

Upvotes: 0

Peter Prochazka
Peter Prochazka

Reputation: 26

based on info:

https://logback.qos.ch/news.html

2022-08-28 Release of logback versions 1.3.0 and 1.4.0

Here is a list of changes with respect to the previous version.

• The ch.qos.logback.classic.jmx package was removed for security reasons and for lack of use.

Upvotes: 1

Related Questions