1 Reply Latest reply on Oct 9, 2018 5:25 AM by rhusar

    Enable UndertowLogger statements in JBOSS classes


      I tried to enable logger statements mentioned in one of undertow subsystem.

      For example : I tried below configuration still it doesn't print statement "UndertowLogger.SESSION_LOGGER.tracef("Setting session cookie session id %s on %s", sessionId, exchange);" or "UndertowLogger.REQUEST_LOGGER.debugf("Removing session %s as max size has been hit", key);"


      Can anyone please help me enable above log statements


              <subsystem xmlns="urn:jboss:domain:logging:3.0">
                  <console-handler name="CONSOLE">
                      <level name="DEBUG"/> <!-- <level name="TRACE"/> -->
                          <named-formatter name="COLOR-PATTERN"/>
                  <periodic-rotating-file-handler name="FILE" autoflush="true">
                          <named-formatter name="PATTERN"/>
                      <file relative-to="jboss.server.log.dir" path="atg_production_lockserver.log"/>
                      <suffix value=".yyyy-MM-dd"/>
                      <append value="true"/>
                  <logger category="com.arjuna">
                      <level name="WARN"/>
                  <logger category="org.jboss.as.config">
                      <level name="DEBUG"/>
                  <logger category="sun.rmi">
                      <level name="WARN"/>
                      <level name="DEBUG"/> <!-- <level name="TRACE"/> -->
                          <handler name="CONSOLE"/>
                          <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"/>