Previous Topic: About the Logger Configuration Files

Next Topic: Appender in eiam.log4net.config

Appender

An appender contains parameters that control the logging of each logger. By default, the logger configuration files contains the following appenders:

SDK appender is enabled by default. To enable other appenders, remove the comment strings (<!-- and -->) from their respective code.

An appender consists of the following configurable parameters:

Example: SDK Appender

<appender name="SDK" class="org.apache.log4j.RollingFileAppender">
<!-- The active sdk log file -->
<param name="file" value="eiam.cppsdk.log" />
<param name="append" value="true" />
<param name="BufferedIO" value="false"/>
<param name="maxFileSize" value="10000KB" />
<param name="maxBackupIndex" value="1" />
<layout class="org.apache.log4j.PatternLayout">
<!-- The log message pattern -->
<param name="ConversionPattern" value="%5p %d{ISO8601} [%t] [%c] %m%n"/>
</layout>
</appender>


Copyright © 2010 CA. All rights reserved. Email CA about this topic