启用JBOSS类加载的日志记录 [英] Enable logging for JBOSS class loading

查看:374
本文介绍了启用JBOSS类加载的日志记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何在JBoss 5.x中启用日志以调试类加载问题。如果是在JBOSS_HOME / server / xxxxx / conf下配置jboss-log4j.xml,我们是否需要添加任何一段代码或者是否有任何其他方式来启用跟踪。

How do we enable logging to debug class loading issues in JBoss 5.x. If it is under JBOSS_HOME/server/xxxxx/conf to configure jboss-log4j.xml, should we need to add any piece of code or is there any other way to enable tracing.

推荐答案

在JVM中可以打开两个位置的日志记录:

You can turn on logging in two places:


    <你应该通过额外的开关 -verbose:class 。您可以将这些开关置于 JAVA_OPTS 变量定义中的 run.conf 文件中。
  1. In JVM - you should just pass the extra switch -verbose:class. You can put these switch in your run.conf file in JAVA_OPTS variable definition.

jboss-log4j.xml 文件中启用日志记录。您应该在文件中放置如下定义:

Turn logging in jboss-log4j.xml file. You should place in the file such definition:

<category name="org.jboss.classloader">
   <priority value="DEBUG"/>
</category>


这篇关于启用JBOSS类加载的日志记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆