-
1. Re: How to turn off DEBUG messages in server log
peterj Mar 5, 2012 4:33 PM (in response to mandarjoglekar)Edit the server/xxx/conf/jboss-log4j.xml file, uncommenting the threshold line for the FILE appender and setting it to INFO. Example:
{code:xml}<appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/server.log"/>
<param name="Append" value="true"/>
<param name="Threshold" value="INFO"/>
. . .{code}
-
2. Re: How to turn off DEBUG messages in server log
mandarjoglekar Mar 5, 2012 4:39 PM (in response to peterj)Peter thanks for this reply. I am using jboss-5.1.0.GA server. In that under server I have all, default, minimal, standard and web sub-directories. And all of these sub-directories have conf sub-folder and all of them have jboss-log4j.xml file. So which one to change?
is it
server/all/conf/jboss-log4j.xml
or
server/default/conf/jboss-log4j.xml
or
server/minimal/conf/jboss-log4j.xml
or
server/standard/conf/jboss-log4j.xml
or
server/web/conf/jboss-log4j.xml
which one to change?
-
3. Re: How to turn off DEBUG messages in server log
peterj Mar 5, 2012 4:43 PM (in response to mandarjoglekar)Which server configuration are you running?
-
4. Re: How to turn off DEBUG messages in server log
mandarjoglekar Mar 5, 2012 4:45 PM (in response to peterj)jboss-5.1.0.GA
-
5. Re: How to turn off DEBUG messages in server log
mandarjoglekar Mar 5, 2012 4:59 PM (in response to peterj)I looked at all the jboss-log4j.xml files and they are the same. The only place I found the debug is here
<!-- Log events through SNMP
<appender name="TRAP_LOG" class="org.apache.log4j.ext.SNMPTrapAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="ImplementationClassName" value="org.apache.log4j.ext.JoeSNMPTrapSender"/>
<param name="ManagementHost" value="127.0.0.1"/>
<param name="ManagementHostTrapListenPort" value="162"/>
<param name="EnterpriseOID" value="1.3.6.1.4.1.24.0"/>
<param name="LocalIPAddress" value="127.0.0.1"/>
<param name="LocalTrapSendPort" value="161"/>
<param name="GenericTrapType" value="6"/>
<param name="SpecificTrapType" value="12345678"/>
<param name="CommunityString" value="public"/>
<param name="ForwardStackTraceWithTrap" value="true"/>
<param name="Threshold" value="DEBUG"/>
<param name="ApplicationTrapOID" value="1.3.6.1.4.1.24.12.10.22.64"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d,%p,[%t],[%c],%m%n"/>
</layout>
</appender>
-->
do you want me to change this?
-
6. Re: How to turn off DEBUG messages in server log
peterj Mar 5, 2012 5:59 PM (in response to peterj)Not which version of JBoss AS you are runing, which configuration are you running? Are you running all, default, standard, web or what?
-
7. Re: How to turn off DEBUG messages in server log
wdfink Mar 6, 2012 2:05 AM (in response to mandarjoglekar)As you don't know what you run I suppose you start JBoss like this:
'bin/run.sh'
then you are using the 'default' profile, if you use the -c option you have to use that directory.
So assume you are not using -c, change server/default/conf/jboss-log4j.xml.
Also what kind of debug messages you see? Your application or JBoss?
-
8. Re: How to turn off DEBUG messages in server log
mandarjoglekar Mar 7, 2012 10:29 AM (in response to wdfink)Thank you for your replies.
-
9. Re: How to turn off DEBUG messages in server log
philipkangdds69 Apr 16, 2012 9:07 AM (in response to wdfink)Thanks a bunch! It helped me a lot. I was having trouble trying to turn the debug messages off too.
--------------------------------------------------------------------------------------------------------------------------------------