Using loggers in an application
Using loggers in an application
This topic describes how to use Java logging within an application.
To create an application using Java logging...
- Create the necessary handler, formatter, and filter classes if you need your own log files.
- If localized messages are used by the application, create a resource bundle, as described in Creating log resource bundles and message files .
- In the application code, get a reference to a logger instance,
as described in Using a logger .
- 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
Searchable topic ID: ttrb_javalogapps