Apama 10.15.0 | 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.