Apama 10.3.1 | Apama Documentation | Developing Apama Applications | Developing EPL Plug-ins | Writing EPL Plug-ins in C++ | Creating a plug-in using C++ | Writing to the correlator log file
 
Writing to the correlator log file
The EPLPlugin base class provides a member called logger to plug-ins. This can be used to write messages to the correlator's log file.
Log messages are prefixed with the string plugins.PluginName, which is also the category that can be used to control the log level for this plug-in via the correlatorLogging section in the YAML configuration file (see Setting correlator and plug-in log levels in a YAML configuration file).
void logMessage(const char *msg) {
logger.info("Message is: %s", msg);
}
Documentation about the available functions and log levels can be found in the API Reference for C++ (Doxygen).

Copyright © 2013-2019 | 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.