Jboss如何在终端控制台console输出部署项目的调试信息

 在%JBOSS_HOME%\server\default\conf\jboss-service.xml文件中,找到如下mbean:

  
  
  
  
  1. <mbean code="org.jboss.logging.Log4jService" 
  2.       name="jboss.system:type=Log4jService,service=Logging" 
  3.       xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml"> 

添加一个属性:

  
  
  
  
  1. <attribute name="CatchSystemOut">false</attribute> 

添加后如下:

 

  
  
  
  
  1. <mbean code="org.jboss.logging.Log4jService" 
  2.       name="jboss.system:type=Log4jService,service=Logging" 
  3.       xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml"> 
  4.       <attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute> 
  5.       <attribute name="CatchSystemOut">false</attribute> 

 

你可能感兴趣的:(jboss,项目,控制台,如何)