What is the result of making log4j additivity equals to true or false?

By default, a logger inherits the appenders from its ancestors. By setting additivity="false", you prevent this behaviour.

In your example, there may be appenders associated with com.mypage.glass or com.mypage or even the root logger that would be inherited if you don’t set that property to false.

Leave a Comment