The sample log4j.xml file below shows how to enable Perf4J appenders for JMX.
下面的log4j . xml文件示例显示了如何启用用于JMX的Perf 4 j appender ?
It contains a hierarchy object plus data necessary for the custom appenders as shown in Listing 2.
该管理器包含一个hierarchy对象,以及定制appenders所需的数据,如清单2所示。
This mock logger sends its output to System.out instead of to any of the defined log4j appenders.
这个模拟记录器将它的输出发送到System . out而不是任何已定义的log4j输出器。
应用推荐