3 Replies Latest reply on Aug 3, 2007 3:59 PM by salewski

    Disabling the output of Jboss startup

    nnguyen1981

      Is there a way to disable the output to the console (screen)? I still want the log to work, but is there some config or parm to pass to disable all of the output? TIA

        • 1. Re: Disabling the output of Jboss startup
          peterj

          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

            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

              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.