• The sample log4j.xml file below shows how to enable Perf4J appenders for JMX.

    下面的log4j . xml文件示例显示了如何启用用于JMXPerf 4 jappender

    youdao

  • It contains a hierarchy object plus data necessary for the custom appenders as shown in Listing 2.

    该管理器包含一个hierarchy对象以及定制appenders所需数据如清单2

    youdao

  • This mock logger sends its output to System.out instead of to any of the defined log4j appenders.

    这个模拟记录器输出发送System . out而不是任何已定义log4j输出器。

    youdao

  • Much of Perf4J's extended functionality is made available through a set of custom log4j appenders.

    Perf4J扩展功能大部分通过定制log4j appender提供。

    youdao

  • As you can see in Listing 7, there are two appenders defined: the appender A1 is a PluginFileAppender and assigned to the root logger.

    正如清单7看到的一样,我们定义了两个appenderappender a 1一个pluginfileappender类,它被分配记录器。

    youdao

  • Runtime verbosity control: the verbosity level of log4j loggers and appenders can be configured at start time and then modified at run time.

    运行冗长控制log4j记录程序附加程序冗长等级可以系统启动配置随后运行修改

    youdao

  • File needs to be on the classpath to specify the appenders to use, which is done here by adding a folder to the application server's classpath. To do this.

    请注意,Log4J. properties文件需要路径上,指定使用搜索路径,这里是通过应用程序服务器的类路径添加文件夹来实现的。

    youdao

  • You can then configure its output through the same property file; you only need to specify the Logger name and filter it, add appenders, etc. The class is shown in Listing 6.

    然后可以通过相同配置文件输出结果进行配置;只需指定记录器名字、设置过滤条件、添加appender即可。

    youdao

  • In addition to the JMX appender, Perf4J also provides graphing appenders that generate performance graphs that can be exposed through a web front-end using a Perf4J graphing servlet.

    除了JMX插件,Perf4J支持生成性能图表画图appender使用前端Perf 4j画图servlet

    youdao

  • This is needed so that when the plug-in stops, it will be possible to shut down all the hierarchies and allow the appenders and loggers to be correctly removed as you can see in Listing 5.

    必需的,这样插件停止时可以关闭该插件的所有层次结构正确删除appender记录器清单 5 所

    youdao

  • This is needed so that when the plug-in stops, it will be possible to shut down all the hierarchies and allow the appenders and loggers to be correctly removed as you can see in Listing 5.

    必需的,这样插件停止时可以关闭该插件的所有层次结构正确删除appender记录器清单 5 所

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定