This content has been marked as final.
Show 3 replies
-
1. Re: Disabling the output of Jboss startup
peterj Aug 3, 2007 2:48 PM (in response to nnguyen1981)Edit the server/xxx/conf/log4j.xml (or jboss-log4j.xml file, depending on your version), commenting out the CONSOLE appender.
-
2. Re: Disabling the output of Jboss startup
nnguyen1981 Aug 3, 2007 3:50 PM (in response to nnguyen1981)forgive me, but I'm very new to Jboss. When I go into log4j.xml and attempt to comment out like I have below, I get an error at startup that says "--" not allowed in comment session. Would you happen to know what I may be doing wrong? Thanks for the guidance.
<!-- <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="Target" value="System.out"/> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> <!-- The default pattern: Date Priority [Category] Message\n --> <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/> </layout> </appender> -->
-
3. Re: Disabling the output of Jboss startup
salewski Aug 3, 2007 3:59 PM (in response to nnguyen1981)It's not a JBoss question, but rather an XML question.
You cannot have nested comments in XML, such as the one within your 'layout' element.