Log4Net Logging of two different levels to two different appenders for the same logger

后端 未结 4 1070
遥遥无期
遥遥无期 2020-11-30 02:24

We have two different asp.net applications with Log4net logging enabled. They both have the same version of Log4Net, 1.2.10.0.

We have added the log4net.Append

4条回答
  •  醉酒成梦
    2020-11-30 03:00

    Two elements are not allowed.

    From documentation:

    root     Optional element, maximum of one allowed. Defines the configuration of the root logger.
    

    You can however have a root logger like you do, and then have a separate logger specified by a namespace.

    
        
        
    
    
        
        
    
    

提交回复
热议问题