Hi all,
I have got a question about how it's possible to add a custom MDCConverter on
startup even if no PatternLayoutEncoder is used?
I have got configured a SyslogAppender (no PatternLayout possible) which uses a
custom MDCConverter. How is it possible to publish this
converter by adding to ch.qos.logback.classic.PatternLayout.defaultConverterMap
without having other appenders? If e. g. console or file
appenders are defined (with custom pattern layout which adds MDCConverter) but
not used, adding to the map is done in PatternLayoutEncoder
and everything works fine.
One (dirty?) solution I found is to add the Converter to the map with the
definition of e. g.
<define name=“syslogMdcConverterActivator”
class="my.package.SyslogMdcConverterActivator" />
Any suggestions?
Thanks,
Martin
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user