WAS v8.5 > Troubleshoot > Add logging and tracing to the applicationProgramming with the JRas framework
Use the JRas extensions to incorporate message logging and diagnostic trace into WebSphere Application Server applications.
Deprecated feature: The JRas framework described in this task and its sub-tasks is deprecated. However, we can achieve similar results using Java logging.
The JRas extensions allow message logging and diagnostic trace to work with WAS applications. They are based on the stand-alone JRas logging toolkit.
IBM recommends using the HPEL log and trace infrastructure. With HPEL, one views logs using the LogViewer command-line tool in PROFILE/bin.
- Retrieve a reference to the JRas manager.
- Retrieve message and trace loggers using methods on the returned manager.
- Call the appropriate methods on the returned message and trace loggers to create message and trace entries, as appropriate.
Subtopics
- JRas logging toolkit
The JRas logging toolkit provides diagnostic information to help the administrator diagnose problems or tune application performance.- JRas Extensions
JRas extensions are the collection of implementation classes that support JRas integration into the WAS environment.- JRas messages and trace event types
The basic JRas message and event types are not the same as those natively recognized by WAS, so the JRas types are mapped onto the types that are native to the runtime environment. We can control the way JRas message and trace events are processed using custom filters and message controls.- Instrumenting an application with JRas extensions
We can create an application using JRas extensions.- JRas logging toolkit
The JRas logging toolkit provides diagnostic information to help the administrator diagnose problems or tune application performance.- JRas Extensions
JRas extensions are the collection of implementation classes that support JRas integration into the WAS environment.- JRas messages and trace event types
The basic JRas message and event types are not the same as those natively recognized by WAS, so the JRas types are mapped onto the types that are native to the runtime environment. We can control the way JRas message and trace events are processed using custom filters and message controls.- Instrumenting an application with JRas extensions
We can create an application using JRas extensions.