Working with log files
There are several tasks relating to managing your log files from applications, such as
specifying log file formats and locations, and associating loggers with appenders.
Specifying local log file locations
You can specify a folder for storing your log files from activities such as escalations and integrations.
Managing appenders
You can create, change, or delete appenders in the Logging application.
Automation scripts loggers
All logging that is related to scripts is done by the autoscript logger. The log level is set, by default, to ERROR. Only errors that are encountered during script execution, are output to the system console or to the product log file.
Log control of individual scripts
To help you identify errors in automation scripts, you can add child script loggers to the root logger for automation scripts. Then, you associate the new script logger with the script that you want to monitor and specify a log level that is more granular than the log level for root logger for automation scripts.
Cron task loggers
When cron tasks fail to run successfully, the root logger cron task can be set to different levels to obtain more detailed logs. If a particular cron task fails to run successfully, additional loggers can be set up to isolate the cause of the failure.
Adding a rolling logger for the PMWoGen cron task
You can limit the size and number of log files that are saved for the PMWoGen cron task. You add a cron task logger that rolls over to a new log file when the current log reaches a specified size. Older versions are deleted after a specified number of instances. The log level can be less granular than the level that is specified for the parent cron task logger.
Escalation loggers
If an escalation fails to run, the failure can be caused by the escalation engine, the email notifications, or actions triggered by the escalation. You can troubleshoot the cause of the failure by setting the correct log level.
Integration framework loggers
The integration framework has four root loggers: integration, REST, interaction, and Open Services Lifecycle Collaboration (OSLC). To receive the maximum amount of information set the root loggers to DEBUG.
Enabling the EventTracker filter
To enable the EventTracker filter, uncomment the filter definition and filter mapping in the web.xml file, which is located in Tpae root \applications\maximo\ maximouiweb\webmodule\WEB-INF\ directory.
Configuring custom log messages to help resolve bugs
To identify the section of a log file that contains statements or messages that are relevant to product use, problem creation, or a debugging activity, you can configure custom log messages. You specify start and end messages that are included in the log file. You can review the statements or messages that are shown in between the custom log start and end messages in the log file to help you trace a scenario or resolve an issue.
Enabling thread logs
In the System Configuration application, you can enable thread logs to track actions made by specified users in Maximo Manage , such as in the user interface.
Scenario: Interpreting log file statements to resolve errors
Marco, a system administrator, wants to isolate and resolve an error that occurs when someone tries to save a work order. Marco can troubleshoot the problem by setting the Word Order Tracking root logger to DEBUG and the SQL root logger to INFO.