Previous Topic: Appender in eiam.log4net.config

Next Topic: Root Logger

Logger

Loggers let you control the log messages for CA EEM SDK. To enable a logger, remove the comment strings from their respective code.

A logger contains the following parameters:

logger name

Specifies the name of a logger.

additivity

Specifies if the log messages are duplicated in the SDK log file.

Value: [true|false]

Default: false

level value

Specifies log level of a logger.

Value: [Trace|Debug|Info|Warn|Error|Fatal|Off]

The following are the log levels, in the order of their precedence:

Note: Higher the log level, lesser is the performance of CA EEM.

Trace

Indicates low level debugging. It contains control flow and passes arguments.

Debug

Indicates messages used for problem diagnosis. It contains contextual information.

Info

Indicates contextual information that traces execution at a coarse-grained level in a production environment.

Warn

Indicates a potential problem in the system. For example, if the message category corresponds to security, a warning message must display if a dictionary attack is detected.

Error

Indicates a serious problem in the system. The problem is non-recoverable and requires manual intervention.

Fatal

Indicates a very sever error that may lead the application to abort.

Off

Indicates the absence of logging.

Note: The log level of the default SDK appender must be Error.

Example: Performance Logger

<logger name="Perform" additivity="false">
<level value="trace"/>
<appender-ref ref="Performance" />
</logger>