System and method to generate tracing information for a particular BPEL process instance into a separate log destination.
Publication Date: 2010-Sep-23
The IP.com Prior Art Database
System and method to enable criterion based trace mechanism for BPEL instances.
Page 01 of 7
System and method to generate tracing information for a particular BPEL process instance into a separate log destination .
Logging is typically used for recording important events while running the applications. Usually logging is used by the administrators to monitor the system. In the similar lines, Tracing records more data which is used for debugging. Typically, the trace messages will go to a separate destination from the destination where log messages are recorded. The trace files are used by
product development and support teams to debug the problems.
WebSphere Application server uses JUL (
for logging and tracing. JUL is tightly integrated with the product and it is recommended for logging and tracing in the user applications as well.
At the high level, there is a LogManager class that gets instantiated by reading the properties file containing the configuration data. The configuration file lists out various Loggers and Handlers. The Loggers are arranged in hierarchical fashion by LogManager, for example, the Logger com.ibm is the parent of com.ibm.websphere. The Handlers encapsulate logging/tracing destinations like files, sockets etc. Loggers are associated with Handlers which
publish the messages to corresponding destinations.
Each message which is logged or traced is termed as LogRecord. The LogRecords have various Levels. The Loggers and Handler are also set with a particular log Level. When the LogRecord's Level is greater than the Level of Logger and Handler, the LogRecord is published to the corresponding destination. Loggers and Handlers can optionally have a filter, which is a class used to decide whether or not to discard the logging or tracing request based on the contents of the LogRecord.
The Figure1 below illustrates the workings of JUL.
jects in JUL
Page 02 of 7
(This page contains 00 pictures or other non-text object)
Typically, the steps to log/trace a message are as follows.
// get the Logger object
Logger logger = Logger.getLogger(classname);
logger.logp(Level.WARNING, className, methodName,
"Message to be logged");
logger.exiting(className, methodName, contactPhoneNumber);
The messages logged or traced thus will go to same log files where server runtime logs or traces messages respectively.
The Level of the LogRecord determines whether the message is a log message or a trace message. As explained in the beginning, the trace messages are published to a different destination from the destination where log messages are published.
The Logging Levels are as below.
Trace levels are as below.
Page 03 of 7
That is, if the LogRecords have log Level as Level.SEVERE or Level.WARNING or Level.INFO or Level.CONFIG then the corresponding message is termed as Log message and
published in the corresponding destination (Systemout.log, System...