You can pass session event messages to an external procedure to handle. You write the procedure according to how you want to handle the events and compile it into a shared library. The shared library must implement a set of functions in the Session Log Interface provided by PowerCenter. In the Administrator tool, you configure the Integration Service to use the shared library to handle the session logs.
The Session Log Interface lets you pass session event messages, but not workflow event messages, to an external shared library.