Log Files Log Message Format

15-8 Oracle Complex Event Processing Administrators Guide

15.2.2 log-file

This section provides information on the log-file element: Table 15–2 Configuration Parameters for logging-service Parameter Type Description name String The name of this configuration object. log-file-config String The configuration of the log file and its rotation policies. See Section 15.2.2, log-file. stdout-config String The name of the stdout configuration object used to configure stdout output. See Section 15.2.3, log-stdout. logger-severity String Defines the threshold importance of the messages that are propagated to the handlers. The default value is Info. To see Debug and Trace messages, configure the logger-severity to either Debug or Trace. Valid values are: Emergency, Alert, Critical, Error, Warning, Notice, Info, Debug, and Trace. logger-severity-properties One or more entry child elements. List of name-value pairs, enclosed in an entry element, that list individual modules package name, application name, class name, or component such as CQLProcessor and their logging severity. These severities override the default severity of the Oracle CEP server. See Section 15.2.4, Configuring Severity for an Individual Module. Table 15–3 Configuration Parameters for log-file Parameter Type Description name String The name of this configuration object. base-log-file-name String The log file name. Default value is server.log. log-file-severity String Specifies the least important severity of messages written to the log file. Default value is Trace. Valid values are: ■ Emergency ■ Alert ■ Critical ■ Error ■ Warning ■ Notice ■ Info ■ Debug ■ Trace log-file-rotation-dir String Specifies the directory where old rotated files are stored. If not set, the old files are stored in the same directory as the base log file. rotation-type String Specifies how rotation is performed based on size, time, or not at all. Valid values are: ■ bySize ■ byTime ■ none Configuring Logging and Debugging for Oracle CEP 15-9

15.2.3 log-stdout

This section provides information on the log-stdout element:

15.2.4 Configuring Severity for an Individual Module

Individual modules of Oracle CEP can specify their logging severity. This severity overrides the default logging severity of Oracle CEP server. You do this by specifying an entry child element in the logger-severity-properties element in the Oracle CEP server config.xml file. You may specify multiple entry child elements for any number of modules. To configure severity for an individual module: 1. Edit the Oracle CEP server config.xml file. rotation-time String The time in k:mm format, where k is the hour specified in 24 hour notation and mm is the minutes. Default is 00:00 rotation-time-span-factor Long Factor applied to the timespan to determine the number of milliseconds that becomes the frequency of time based log rotations. Default is 3600000. rotated-file-count Integer Specifies the number of old rotated files to keep if number-of-files-limited is true. Default value is 7. rotation-size Integer The size threshold, in KB, at which the log file is rotated. Default is 500. rotation-time-span Integer Specifies the interval for every time-based log rotation. Default value is 24. rotate-log-on-startup-enabled Boolean If true, the log file is rotated on startup. Default value is true. number-of-files-limited Boolean If true, old rotated files are deleted. Default is false. Table 15–4 Configuration Parameters for log-stdout Parameter Type Description name String The name of this configuration object. stdout-severity String The threshold severity for messages sent to stdout. Default value is Notice. Valid values are: ■ Emergency ■ Alert ■ Critical ■ Error ■ Warning ■ Notice ■ Info ■ Debug ■ Trace stack-trace-depth Integer The number of stack trace frames to display on stdout. A default value of -1 means all frames are displayed. stack-trace-enabled Boolean If true, stack traces are dumped to the console when included in logged messages. Default value is true. Table 15–3 Cont. Configuration Parameters for log-file Parameter Type Description