WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results

Using loggers in an application

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

About this task

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

Procedure

  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.



In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/ttrb_javalogapps.html