Correct way of using log4net (logger naming)

前端 未结 4 873
感动是毒
感动是毒 2020-12-22 21:15

There are two ways of configuring and using log4net. First one is when I can configure my own appender and associated logger:



&         


        
4条回答
  •  天涯浪人
    2020-12-22 21:41

    Disadvantage of second approach is big repository with created loggers. This loggers do the same if root is defined and class loggers are not defined. Standard scenario on production system is using few loggers dedicated to group of class. Sorry for my English.

提交回复
热议问题