58.10 Configuring Logging for the JBoss Agent and Login Module

The JBoss Agent and the Login Module are both equipped with logging messages at various log levels.

To log these messages, you must edit the jboss-log4j.xml file as described in this procedure.

  1. Locate the jobss-log4j.xml file in the following path:
  2. Open the file in an editor and add the following information:
      <appender name="J2EEAGENT" class="org.jboss.logging.appender.DailyRollingFileAppender">
         <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
         <param name="File" value="${jboss.server.log.dir}/j2eeagent.log"/>
         <param name="Append" value="true"/>
         <param name="DatePattern" value="'.'yyyy-MM-dd"/>
         <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d %-5p [%c] (%t) %m%n"/>
      <category name="oracle.security.am.agent.common">
        <appender-ref ref="J2EEAGENT"/>
          <appender-ref ref="J2EEAGENT"/>
  3. Save the file.