Logging Guide
Table of Contents
- Setting up and usage of logging
1. Setting up and usage of logging
- We are using
java.util.logging
package for logging.
- The
Logger
for a class can be obtained using Logger.getLogger(Class)
which will log messages according to the specified logging level.
- Log messages are output through the console and to a
.log
file.
- The output logging level can be controlled using the
logLevel
setting.
- When choosing a level for a log message, follow the conventions
given in [se-edu/guides] Java: Logging conventions.
Home Page