3 Replies Latest reply on Jan 15, 2014 4:53 AM by gadeyne.bram

    enable teiid logging 8.6

    gadeyne.bram Master

      Hi,

       

      I'm trying to enable logging for Teiid 8.6. I've setup a very basic standalone version. I assume that I have to alter the standalone-teiid.xml file to enable logging.

       

      At startup some org.teiid.RUNTIME and CONNECTOR INFO log messages appear. I'd like to enable some additional loggers like SECURITY.

       

      Below is my full logging configuration. However no Security or other messages appear in my log file while executing query's. Do I need to alter some other files?

       

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

                  <console-handler name="CONSOLE">

                      <level name="INFO"/>

                      <formatter>

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

                      </formatter>

                  </console-handler>

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

                      <formatter>

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

                      </formatter>

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

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

                      <append value="true"/>

                      <level name="INFO" />

                  </periodic-rotating-file-handler>

                  <logger category="com.arjuna">

                      <level name="WARN"/>

                  </logger>

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

                      <level name="WARN"/>

                  </logger>

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

                      <level name="DEBUG"/>

                  </logger>

                  <logger category="sun.rmi">

                      <level name="WARN"/>

                  </logger>

                  <logger category="jacorb">

                      <level name="WARN"/>

                  </logger>

                  <logger category="jacorb.config">

                      <level name="ERROR"/>

                  </logger>

                  <logger category="org.teiid">

                      <level name="INFO"/>

                      <handlers>

                          <handler name="FILE" />

                      </handlers>

                  </logger>

                  <root-logger>

                      <level name="INFO"/>

                      <handlers>

                          <handler name="CONSOLE"/>

                          <handler name="FILE"/>

                      </handlers>

                  </root-logger>

              </subsystem>

       

      Kind regards,

      Bram