[logback-user] The MDCPropertyMap has been already set for this event Exception

Chen Jian jianchen2580 at gmail.com
Thu Jun 28 06:53:52 CEST 2018


Hi - 

I have wrote an appender which use `setMDCPropertyMap` to inject some fields to LoggingEvent. 
It’s fail to working with other build-in appender (e.g. ch.qos.logback.core.FileAppender)
Exception:
java.lang.IllegalStateException: The MDCPropertyMap has been already set for this event.

Regards,
Jian


More information about the logback-user mailing list