Jboss中的日志级别为7个类加载器

时间:2012-07-20 13:58:24

标签: classloader jboss7.x

如何将Jboss中的类加载器的日志级别更改为7?

作为旁注; 我已经在Jboss 5及更低版本中找到了有关如何执行此操作的信息,但由于Jboss 7中的类加载和日志记录已完全更改,因此我无法弄清楚如何执行此操作。

https://community.jboss.org/wiki/EnableClassloaderLogging

1 个答案:

答案 0 :(得分:5)

在启动脚本中将以下内容添加到JAVA_OPTS。

-verbose:class

以下是您的Jboss配置文件(例如standalone.xml)。

<profile>
    <subsystem xmlns="urn:jboss:domain:logging:1.1">
        <logger category="org.jboss.as.deployment">
            <level name="DEBUG"/>
        </logger>
    </subsystem>
</profile>