Apama 10.3 | Apama Documentation | Developing Apama Applications | Developing EPL Plug-ins | Writing EPL Plug-ins in Python | Creating a plug-in using Python | Writing to the correlator log file
Writing to the correlator log file
The EPLPluginBase class provides a member function getLogger 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 log levels in a YAML configuration file).
def logMessage(msg):
getLogger().info("Message is: %s", msg);
Documentation about the available functions and log levels can be found in the API Reference for Python (Pydoc).

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