log4j logging twice

前端 未结 9 1653
眼角桃花
眼角桃花 2021-02-04 23:02

I am using log4j to log error and other system information. but come of the info logged twice at INFO level.

public static void main(final String... args) throws         


        
9条回答
  •  旧巷少年郎
    2021-02-04 23:32

    For those use XML format:

    
        
        
        
    
    

    Note: By default, Loggers have their additivity flag set to true.

提交回复
热议问题