WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Using loggers in an application

This topic describes how to use Java logging within an application.

Why and when to perform this task

To create an application using Java logging, perform the following steps:

Steps for this task

  1. Create the necessary handler, formatter, and filter classes if you need your own log files.
  2. If localized messages are used by the application, create a resource bundle, as described in Creating log resource bundles and message files.
  3. In the application code, get a reference to a logger instance, as described in Using a logger.
  4. Insert the appropriate message and trace logging statements in the application, as described in Using a logger.



Sub-topics
Using a logger
Logger hierarchy
Creating log resource bundles and message files
java.util.logging custom log handlers
java.util.logging custom filters
java.util.logging custom formatters
Custom handlers, filters, and formatters
Task topic    

Terms of Use | Feedback

Last updated: Dec 11, 2005 4:07:15 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/ttrb_javalogapps.html

© Copyright IBM Corporation 2002, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)