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 © 2013 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.