Adding logging and tracing to your application

 

Overview

Deprecation: The JRas framework that is described in this information center is deprecated. However, one can achieve the same results using Java logging.

Designers and developers of applications that run with or under WebSphere Application Server, such as servlets, JavaServer Pages (JSP) files , enterprise beans, client applications, and their supporting classes, might find it useful to use Java logging for generating their application logging.

This approach has advantages over simply adding System.out.println statements to your code:

  • Your messages are displayed in the WAS standard log files, using standard message format with additional data, such as a date and time stamp that are added automatically.

  • We can more easily correlate problems and events in your own application to problems and events that are associated with WebSphere Application Server components.

  • We can take advantage of the WAS log file management features.

  • We can view your messages with the Log Analyzer tool.



 

See also


Logging and tracing with Java logging
The Common Base Event in WebSphere Application Server
Programming with the JRas framework