WSO2 Complex Event Processor is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.
Skip to end of metadata
Go to start of metadata

The logger event publisher logs the output events in XML, text, and JSON formats.

Creating a logger event publisher

For instructions on creating a logger event publisher, see Configuring CEP to Create Alerts.

Configuring adapter properties

Specify the Dynamic Adapter Properties, when creating a logger event publisher using the management console as shown below.

logger event publisher

After entering the above adapter properties, select the Message Format that you want to apply on the published events. Also, click Advanced to define custom output mappings based on the Message Format you selected. For more information on custom output mapping types, see Output Mapping Types.

You can also define the respective adapter properties of the event publisher based on the transport type within the <to> element of the event publisher configuration in the <PRODUCT_HOME>/repository/deployment/server/eventpublishers/ directory as follows.

<eventPublisher name="LoggerOutputEventAdapter" statistics="disable" trace="disable" xmlns="">
  <to eventAdapterType="logger">
    <property name="uniqueId">log_id</property>

The above adapter properties are described below.


Adapter PropertyDescriptionConfiguration file propertyExample
Unique IdentifierA string of characters to uniquely identify a log entry

Related samples

For more information on logger event publisher type, see the following samples.

  • No labels