Use Java logging in an application
- Optional: Create the necessary handler, formatter, and filter classes if we need our own log files.
Use the WebSphere log and trace infrastructure to make problem source identification simpler, rather than creating separate log files.
- Optional: If localized messages are used by the application, create a resource bundle.
- In the application code, get a reference to a logger instance.
- Insert the appropriate message and trace logging statements in the application,
Subtopics
- Use a logger
- Java logging
- Configure the logger hierarchy
- Create log resource bundles and message files
- Logger.properties file for configuring logger settings