An appender contains parameters that control the logging of each logger. By default, the logger configuration files contains the following appenders:
Logs the SDK messages into a log file. Specifies the path including the file name of the log file.
Default: EIAM.C#SDK.log
Note: If you are deploying your application under Tomcat server on Windows, ensure that you use forward slash '/' in the path instead of the backward slash '\'. If you use backward slash, the log file is not created at the path you have specified; instead, the log file is created in the Apache Tomcat folder.
Logs the network call related messages into a log file.
Default:EIAM.NETWORK.C#SDK.log
Logs the performance call related messages into a log file.
Default: EIAM.PERFORMANCE.C#SDK.log
Displays the log messages on the console.
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:
Specifies the log filename of the appender.
Specifies if a set of log messages is appended to the log file. If the value is true, the set of log message is appended to the last log message in the log file.
Specifies the maximum number of backup log files used for keeping old logs. If the number of log files exceeds the maximum backup index value, the file with the oldest log messages is deleted.
Default: 1
Minimum: 1
Maximum: 12
Specifies the criteria for creating log files. When this parameter is set to Size, if a log file exceeds the maximumFileSize, a new log file is created and the contents of the current log file are backed up.
Default: Size
Specifies the maximum size of the log file. If a log file exceeds the maximum size, a new log file filename log.1 is created and the contents of log file are transferred to log.1 file. The log file now contains latest log messages. If this file too exceeds the maximum size, a new log file filename log.2 is created, the contents of log.1 are transferred to log.2 file, and the contents of log file are transferred to log.1 file.
Default: 10 MB
Minimum: 10 KB
Maximum: 2 GB
Note: The minimum size of the maxFileSize must be greater than or equal to the size of rollingStyle.
Specifies the formatting of a log message. Configure the format modifiers and conversion characters to define the conversion pattern.
Note: For more information about conversion patterns, refer the topic log4net in www.apache.org.
| Copyright © 2011 CA. All rights reserved. | Email CA Technologies about this topic |