Additional Java SE Packages

Handler

The Handler class is part of the java.util.logging package and is used to define how log messages are handled. A handler receives log messages from a Logger and then writes them to a destination such as: Console File Network socket Custom output Common Subclasses of Handler Commonly Used Methods Simple Program Using ConsoleHandler Handlers are …

Handler Read More »

Logger

The Logger class is part of the java.util.logging package in Java. It is used for logging messages for a specific system or application component. Loggers are typically named using hierarchical dot-separated names (e.g., com.bank.account). Commonly Used Methods Simple Logger Program Problem Statement: LotusJavaPrince has designed a banking system that performs fund transfers. If something goes …

Logger Read More »

Scroll to Top