AI-generated Key Takeaways
-
This page provides a comprehensive overview of the Java Logging API, including both its interfaces and classes.
-
Key interfaces include
Filterfor controlling which log records pass through andLoggingMXBeanfor managing the logging system. -
The API offers a variety of classes that are useful for controlling how and where log messages are published.
-
These classes include core components like Logger, Handler, and Formatter as well as more specialized ones such as different Handlers and the global LogManager.
Interfaces
| Filter | A Filter can be used to provide fine grain control over what is logged, beyond the control provided by log levels. |
| LoggingMXBean | The management interface for the logging facility. |
Classes
| ConsoleHandler | This Handler publishes log records to System.err. |
| ErrorManager | ErrorManager objects can be attached to Handlers to process any error that occurs on a Handler during Logging. |
| FileHandler | Simple file logging Handler. |
| Formatter | A Formatter provides support for formatting LogRecords. |
| Handler | A Handler object takes log messages from a Logger and exports them. |
| Level | The Level class defines a set of standard logging levels that can be used to control logging output. |
| Logger | A Logger object is used to log messages for a specific system or application component. |
| LoggingPermission | Legacy security code; do not use. |
| LogManager | There is a single global LogManager object that is used to maintain a set of shared state about Loggers and log services. |
| LogRecord | LogRecord objects are used to pass logging requests between the logging framework and individual log Handlers. |
| MemoryHandler | Handler that buffers requests in a circular buffer in memory. |
| SimpleFormatter | Print a brief summary of the LogRecord in a human readable
format. |
| StreamHandler | Stream based logging Handler. |
| XMLFormatter | Format a LogRecord into a standard XML format. |