3/09/2018

Robust Automation Script Logging

To provide robust and reliable logging of Automation Scripts, we have developed a custom logger function named zLog() to write to the Maximo log files. In Automation Scripts, this function provides advanced functionality and reliability beyond Jython print statements. Many times, print statements failed when the scripts abended. Additionally, we couldn't fully control logging for various log levels (as set in Logging and Automation script modules).

The following is the main function, zLog(), and the required imports. This is in Jython. There are also MBO specific extender functions which provide additional MBO specific logging (see below).

External link:
https://www.ibm.com/developerworks/community/forums/html/topic?id=2552664f-0646-410a-b0fb-33cd6181a474

No comments:

Post a Comment