0 Replies Latest reply on Jan 18, 2017 4:13 AM by Shiv Shankar

    How to prevent wildfly 10 from printing logs on console?

    Shiv Shankar Newbie

      I am trying to configure logging in Wildfly 10. I was able to configure it to write logs to "server.log" file @ location wildfly-10.0.0.Final\standalone\log.

      The server writes properly in the log file, however it also prints on the console which opens when you click standalone.bat. As all the logs are printed on this console, my application slows down a lot. I tried removing CONSOLE handler but still it has no effect..

      Below is the logging part of standalone.xml file.

      Please let me know if there is any way to prevent wildfly from logging on console.


      <subsystem xmlns="urn:jboss:domain:logging:3.0">

                  <periodic-rotating-file-handler name="FILE" autoflush="true">


                          <named-formatter name="PATTERN"/>


                      <file relative-to="jboss.server.log.dir" path="server.log"/>

                      <suffix value=".yyyy-MM-dd"/>

                      <append value="true"/>


                  <logger category="com.arjuna">

                      <level name="WARN"/>


                  <logger category="org.apache.tomcat.util.modeler">

                      <level name="WARN"/>


                  <logger category="org.jboss.as.config">

                      <level name="ALL"/>


                  <logger category="sun.rmi">

                      <level name="WARN"/>


                  <logger category="jacorb">

                      <level name="WARN"/>


                  <logger category="jacorb.config">

                      <level name="ERROR"/>


                  <logger category="org.jboss.security">

                      <level name="TRACE"/>



                      <level name="DEBUG"/>


                          <handler name="FILE"/>



                  <formatter name="PATTERN">

                      <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>


                  <formatter name="COLOR-PATTERN">

                      <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/>