Logback configuration reload.
Plugin hooks into
ch.qos.logback.core.joran.GenericConfigurator.doConfigure(URL) call. All configuration URL’s are
registered and watched for change. After the file change, full reconfiguration via the same method is executed.
- The plugin registers directly to the file URL. This is usually
target/classes/logback.xml. If used together with
watchResourcesproperty in hotswap-agent.properties, the change may be only in
src/main/resources/logback.xmland hence not triggered. Usually this is solved by IDE’s copy resources on save feature.