MessageLog Object




The MessageLog object provides access to the error message logging facilities on the local PI SDK node as well as remote PI Server nodes. Methods are provided to send messages to be logged and to retrieve messages already logged. Additional message attributes, such as severity, may be added using the MessageLog2 interface


The local message logging system is accessed from the MessageLog property of the global PISDK object. A specific server’s log (remote, or local if a server exists on the PI-SDK node) can be accessed from the Server object’s MessageLog propery. In cases where a PI-SDK program is running on a PI server node directly, a single instance of the underlying logging service supports both objects. In this case messages from client applications and the server will be intermingled in the log.

If the PI message logging service is unavailable on a node, messages are sent to the Windows Application Event Log.

Enabling Operational Intelligence