Developing Apama Applications > Developing Apama Applications in EPL > Defining What Happens When Matching Events Are Found > Logging and printing > Strings in print and log statements
Strings in print and log statements
In both print and log statements, the string can be any one of the following:
*Literal, for example: print "Hello";
*Variable, for example:
string welcomeMessage;
...
log welcomeMessage;
*Combination of both, for example:
string welcomeMessage;
...
print "Hello " + welcomeMessage + " Bye";
Internally, the correlator encodes all textual information as UTF-8. When the correlator outputs a string to a console or stdout because of a print statement, or sends a string to the log, the correlator translates the string from UTF-8 to the current machine’s (where the correlator is running) local character set. However, if you redirect stdout to a file, the correlator does not translate to the local character set. This ensures that the correlator preserves as much information as possible.
Copyright © 2013-2015 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.