Voting on this one. It is useful in context where you have different environments with the need to have different rolling policies per environment.
In that case we predefine different appenders (with different rolling policies) in the logging configuration, but wire loggers only to one appender.
In our case, with file appenders not being lazy, LOGBack initializes all appenders on startup and creates all the files, which we would like to avoid.
In that case we predefine different appenders (with different rolling policies) in the logging configuration, but wire loggers only to one appender.
In our case, with file appenders not being lazy, LOGBack initializes all appenders on startup and creates all the files, which we would like to avoid.