You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use logback configuration with scan="true" that reconfigures logback whenever logback.xml changes. However, the first reload causes that no more logback events are recorded by the micrometer LogbackMetrics.
The reason this happens is that logback LoggerContext is reset when the configuration is reloaded and the reset clears the turbo filter list. Registering a LoggerContextListener that re-adds the MetricsTurboFilter solves this issue.
I'm going to attach a patch to LogbackMetrics that fixes this.
Thanks,
M.B.
The text was updated successfully, but these errors were encountered:
Hi!
I use logback configuration with
scan="true"
that reconfigures logback wheneverlogback.xml
changes. However, the first reload causes that no more logback events are recorded by the micrometerLogbackMetrics
.The reason this happens is that logback
LoggerContext
is reset when the configuration is reloaded and the reset clears the turbo filter list. Registering aLoggerContextListener
that re-adds the MetricsTurboFilter solves this issue.I'm going to attach a patch to LogbackMetrics that fixes this.
Thanks,
M.B.
The text was updated successfully, but these errors were encountered: