Setting the Log Factory

15-6 Oracle Complex Event Processing Administrators Guide appender that sends log messages to standard out, and another appender that writes log messages to a file. Individual loggers might be configured to write to zero or more appenders. One example usage would be to send all logging messages all levels to a log file, but only ERROR level messages to standard out.

15.1.3.3 Layouts

Log4j defines layouts to control the format of log messages. Each layout specifies a particular message format. A specific layout is associated with each appender. This lets you specify a different log message format for standard out than for file output, for example.

15.2 Configuring the Oracle CEP Logging Service

You configure Oracle CEP logging service attributes using Oracle CEP Visualizer or by editing the Oracle CEP server config.xml file. For more information on configuring logging using Oracle CEP Visualizer, see Managing Logs in the Oracle Complex Event Processing Visualizer Users Guide. The config.xml file is located in the ORACLE_CEP_HOMEuser_ projectsdomainsDOMAIN_DIRservernameconfig directory, where ORACLE_CEP_HOME refers to the Oracle CEP installation directory such as d:oracle_cep, DOMAIN_DIR refers to the domain directory such as my_domain, and servername refers to the server instance directory such as server1. Example 15–1 shows a typical Oracle CEP server config.xml file with logging elements. Example 15–1 Oracle CEP Server config.xml File With Logging Configuration ?xml version=1.0 encoding=UTF-8? --Sample XML file generated by XMLSpy v2007 sp2 http:www.altova.com-- n1:config xsi:schemaLocation=http:www.bea.comnswlevsconfigserver wlevs_server_config.xsd xmlns:n1=http:www.bea.comnswlevsconfigserver xmlns:xsi=http:www.w3.org2001XMLSchema-instance ... namemyLogServicename log-file-configmyFileConfiglog-file-config stdout-configmyStdoutConfigstdout-config logger-severityNoticelogger-severity logger-severity-properties entry keyLifeCyclekey valueNoticevalue entry entry keyManagementkey valueNoticevalue entry entry keyCQLProcessorkey valueNoticevalue entry entry keyEplProcessorkey valueNoticevalue entry entry keyStreamkey valueNoticevalue entry Configuring Logging and Debugging for Oracle CEP 15-7 entry keyEdekey valueNoticevalue entry entry keyCachekey valueNoticevalue entry entry keyAdapterskey valueNoticevalue entry entry keySpringkey valueNoticevalue entry entry keyChannelkey valueNoticevalue entry entry keyRecplaykey valueNoticevalue entry entry keyMonitorkey valueNoticevalue entry entry keyServerkey valueNoticevalue entry entry keyEventTracekey valueNoticevalue entry entry keyDeploymentkey valueNoticevalue entry logger-severity-properties logging-service log-file namemyFileConfigname rotation-typenonerotation-type log-file log-stdout namemyStdoutConfigname stdout-severityDebugstdout-severity log-stdout n1:config The following sections provide information on configuring Oracle CEP logging: ■ Section 15.2.1, logging-service ■ Section 15.2.2, log-file ■ Section 15.2.3, log-stdout ■ Section 15.2.4, Configuring Severity for an Individual Module

15.2.1 logging-service

This section provides information on the logging-service element: