Skip to main content
Pentaho Documentation

Add JBoss Logging

Optionally, you can add Pentaho application-level logging to the JBoss logging subsystem. Make sure that the Pentaho Server is stopped before you begin, and start the server after you save the file.

  1. Open the standalone.xml file in the <your jboss directory>/standalone/configuration directory.
  2. Under the </extensions> tag add this code.
     <system-properties>
          <property name="org.jboss.as.logging.per-deployment" value="false"/>
      </system-properties>
    
  3. Find the <console-handler ...> or <file-handler ...> sections and add the following two handlers.
    <console-handler name="PENTAHOCONSOLE">
    <level name="ALL"/>
    </console-handler>
       <file-handler name="PENTAHOFILE">
        <file relative-to="jboss.server.log.dir" path="pentaho.log"/>
        <append value="false"/>
    </file-handler>
    
  4. Under the file handlers section, there is a section containing handler tags. Configure the <root-logger> handler to use these handlers.
    <handler name="PENTAHOCONSOLE"/>
    <handler name="PENTAHOFILE"/>
    
  5. Add the following loggers above <root-logger>.
    <logger category="org.hibernate" use-parent-handlers="false">
        <level name="ERROR"/>
            <handlers>
                <handler name="PENTAHOFILE"/>
                <handler name="PENTAHOCONSOLE"/>
            </handlers>
    </logger>
    <logger category="net.sf.ehcache" use-parent-handlers="false">
        <level name="ERROR"/>
            <handlers>
                <handler name="PENTAHOFILE"/>
                <handler name="PENTAHOCONSOLE"/>
            </handlers>
       </logger>
    <logger category="org.quartz" use-parent-handlers="false">
        <level name="ERROR"/>
            <handlers>
                <handler name="PENTAHOFILE"/>
                <handler name="PENTAHOCONSOLE"/>
    </handlers>
    </logger>
        <logger category="org.springframework" use-parent-handlers="false">
        <level name="ERROR"/>
            <handlers>
                <handler name="PENTAHOFILE"/>
                <handler name="PENTAHOCONSOLE"/>
            </handlers>
    </logger>
    <logger category="org.springframework.security" use-parent-handlers="false">
        <level name="ERROR"/>
        <handlers>
            <handler name="PENTAHOFILE"/>
            <handler name="PENTAHOCONSOLE"/>
        </handlers>
    </logger>
    <logger category="org.pentaho" use-parent-handlers="false">
        <level name="ERROR"/>
        <handlers>
            <handler name="PENTAHOFILE"/>
            <handler name="PENTAHOCONSOLE"/>
        </handlers>
    </logger>
    <logger category="com.pentaho" use-parent-handlers="false">
        <level name="ERROR"/>
        <handlers>
            <handler name="PENTAHOFILE"/>
            <handler name="PENTAHOCONSOLE"/>
        </handlers>
    </logger>
    <logger category="org.jfree.JCommon" use-parent-handlers="false">
        <level name="ERROR"/>
        <handlers>
            <handler name="PENTAHOFILE"/>
            <handler name="PENTAHOCONSOLE"/>
        </handlers>
    </logger>
    <logger category="org.apache.jackrabbit.core.security.authentication.AbstractLoginModule" use-parent-handlers="false">
        <level name="ERROR"/>
        <handlers>
            <handler name="PENTAHOFILE"/>
            <handler name="PENTAHOCONSOLE"/>
        </handlers>
    </logger>
    <logger category="RepositoryImportLog" use-parent-handlers="false">
        <level name="INFO"/>
        <handlers>
            <handler name="PENTAHOFILE"/>
            <handler name="PENTAHOCONSOLE"/>
        </handlers>
    </logger>
    
  6. Save and close the file.