[logback-user] Multiple FileAppenders writing to single file no longer working in Logback 1.2.3

Ceki ceki at qos.ch
Tue Sep 24 22:43:42 CEST 2019

Comments inline.

On 24.09.2019 18:31, John Morton wrote:
> Ceki,
> I know how to have a single appender with a complex filter that would work to isolate the messages. The issue though is that I believe each appender can only have a single encoder. Due to the origin/content of the different types of messages, I'm using different encoders for each of the three types (in each of the three appenders). The only way I see being able to do this is with multiple appenders. Can you think of another way to do this with logback?

Are the encoders custom? Anyway, you could have an encoder which encodes 
in different ways depending on the event.

> I've tried prudent mode on in 1.2.3 and it does not seem to make a difference. Was your 1.3 comment meant to indicate that the behavior should be the same as in 1.1.3 that I relied on previously?

No, 1.2 and 1.3 simply do not allow multiple appenders writing to the 
same file.  --
Ceki Gülcü

More information about the logback-user mailing list