Production settings file for log4j?

后端 未结 4 1999
猫巷女王i
猫巷女王i 2020-11-27 06:14

Here is my current log4j settings file. Are these settings ideal for production use or is there something I should remove/tweak or change? I ask because I was getting all my

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-27 06:39

    Are you creating a Logger for each class using the standard private static final Logger logger = Logger.getLogger(Foo.class); where Foo is the class in which the logger is declared? If you only have 1 Logger instance in your entire application, there could be some contention if there is a lot of logging.

提交回复
热议问题