Developing Apama Applications > Developing Apama Applications in EPL > Defining What Happens When Matching Events Are Found > Logging and printing > Specifying log statements
Specifying log statements
The format of a log statement is as follows:
log string [at identifier]
Syntax description
string
Specify an expression that evaluates to a string.
identifier
Optionally, specify the desired log level. Specify one of the following values: CRIT, FATAL, ERROR, WARN, INFO, DEBUG or TRACE. If you do not specify an identifier, the default is CRIT.
For each encountered log statement, the correlator compares the specified identifer with the applicable log level to determine whether to send the specified string to a log file. If the string is to be sent to a log file, the correlator determines the appropriate log file to send it to.
The correlator uses the tree structure of EPL code to identify the applicable log level and the appropriate log file. See Tree structure of packages, monitors, and events in the "Event Correlator Utilities Reference" section of Deploying and Managing Apama Applications.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.