Adding logging and tracing to your application
Designers and developers of applications that run with or under WAS, such as servlets, JSP files, enterprise beans, client applications, and their supporting classes, may find it useful to use the same facility for generating messages that WAS itself uses, JRas.
This approach has advantages over simply adding System.out.println() statements to your code:
- Your messages appear in the WAS standard message format with additional data, such as a date and time stamp, added automatically.
- One can more easily correlate problems and events in your own application to problems and events associated with WAS components.
- One can take advantage of the WAS log file management features.
- One can view your messages with the WAS user-friendly Log Analyzer tool.
Unless you choose to extend the JRas framework, using the JRas API set is only slightly more complicated than writing basic System println() statements.
See also: