Hello,

When I use Log4j, I can add MDC properties to LogginEvent by using RewriteAppender. It's possible because log4j's LoggingEvent is not an interface and it has setProperty() method.

Is it possible to add or modify MDC properties dynamically in Logback?

The reason I need to change MDC properties using appenders is because of some logs from unaccessible threads. I want to add hostname, application name and some of server's infomation to the logs then transfer the logs event to the central log receiver.


Thanks.