|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
Filter | A Filter can be used to provide fine grain control over what is logged, beyond the control provided by log levels. |
Class Summary | |
ConsoleHandler | This Handler publishes log records to System.err. |
ErrorManager | ErrorManager objects can be attached to Handlers to process any error that occur 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 | The permission which the SecurityManager will check when code that is running with a SecurityManager calls one of the logging control methods (such as Logger.setLevel). |
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. |
SocketHandler | Simple network logging Handler. |
StreamHandler | Stream based logging Handler. |
XMLFormatter | Format a LogRecord into a standard XML format. |
Provides the classes and interfaces of the JavaTM 2 platform's core logging facilities. The central goal of the logging APIs is to support maintaining and servicing software at customer sites.
There are four main target uses of the logs:
The Logging APIs offer both static and dynamic configuration control. Static control enables field service staff to set up a particular configuration and then re-launch the application with the new logging settings. Dynamic control allows for updates to the logging configuration within a currently running program. The APIs also allow for logging to be enabled or disabled for different functional areas of the system. For example, a field service engineer might be interested in tracing all AWT events, but might have no interest in socket events or memory management.
In general, unless otherwise noted in the javadoc, methods and contructors will throw NullPointerException if passed a null argument. The one broad exception to this rule is that the logging convenience methods in the Logger class (the log, logp, log, severe, warning, config, fine, finer, and finest methods) will accept null values for all arguments except for the initial Level argument (if any).
For an overview of control flow, please refer to the Java Logging Overview.
|
JavaTM 2 Platform Std. Ed. v1.4.0 |
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.