如何在JBOSS EAP 7中禁用TRACE或更改日志级别

时间:2019-02-20 10:20:13

标签: jboss

我的服务器日志上出现很多“ TRACE”,因为启动jboss需要花费很多时间,有人可以帮助禁用TRACE或更改日志级别吗?

    yers/base/.overlays/layer-base-jboss-eap-7.0.9.CP,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base))
2019-02-20 15:37:05,413 TRACE [org.jboss.modules] (MSC service thread 1-2) Loading class com.ibm.wsdl.util.xml.DOM2Writer locally from Module "javax.wsdl4j.api:main" from local module loader @47d384ee (finder: local module finder @2d6a9952 (roots: /MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.0.9.CP,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base))
2019-02-20 15:37:05,414 TRACE [org.jboss.modules] (MSC service thread 1-2) Attempting to define class com.ibm.wsdl.util.xml.DOM2Writer in Module "javax.wsdl4j.api:main" from local module loader @47d384ee (finder: local module finder @2d6a9952 (roots: /MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.0.9.CP,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base))
2019-02-20 15:37:05,414 TRACE [org.jboss.modules] (MSC service thread 1-2) Attempting to define package com.ibm.wsdl.util.xml in Module "javax.wsdl4j.api:main" from local module loader @47d384ee (finder: local module finder @2d6a9952 (roots: /MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.0.9.CP,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base))
2019-02-20 15:37:05,414 TRACE [org.jboss.modules] (MSC service thread 1-2) Defined package com.ibm.wsdl.util.xml in Module "javax.wsdl4j.api:main" from local module loader @47d384ee (finder: local module finder @2d6a9952 (roots: /MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules,/MBANK1_APP/FE/PROFILE/jboss-eap-7.0/modules/system/layers/base/.overlays/layer-base-jboss-eap-7.0.

2 个答案:

答案 0 :(得分:1)

在进行以下更改后即可解决

在logging.properties logger.level=INFO

在standalone-full.xml中

` <root-logger>
                <level name="INFO"/>
                <handlers>
                    <handler name="CONSOLE"/>
                    <handler name="FILE"/>
                </handlers>
   </root-logger>`

答案 1 :(得分:0)

您可以在stanadalone.xml配置文件中更改控制台日志级别(例如,更改为INFO),也可以在loggin部分的管理控制台中更改控制台日志级别:

 <subsystem xmlns="urn:jboss:domain:logging:3.0">
            <console-handler name="CONSOLE">
                <level name="INFO"/>