java.util.logging |
|
Java Source File Name | Type | Comment |
ConsoleHandler.java | Class | A handler that writes log messages to the standard output stream
System.err . |
ErrorManager.java | Class | An error reporting facility for
Handler implementations to record any
error that may happen during logging. |
FileHandler.java | Class | A FileHandler is a Handler that writes logging events to one
or more files.
If multiple files are used, when a given amount of data has been written to
one file, this file is closed, and the next file is opened. |
Filter.java | Interface | A Filter provides a mechanism for exercising fine-grained control over what
records get logged. |
Formatter.java | Class | Formatter objects are used to format LogRecord
objects into a string representation. |
Handler.java | Class | A Handler object accepts a logging request and exports the
desired messages to a target, for example, a file, the console, etc. |
Level.java | Class | Level objects are used to indicate the level of logging. |
Logger.java | Class | Loggers are used to log records to certain outputs, including file, console,
etc. |
LoggerExtension.java | Class | Example of a type injected into logging to access package private members. |
LoggingMXBean.java | Interface | The management interface for the logging sub-system. |
LoggingPermission.java | Class | The permission required to control the logging when run with a
SecurityManager . |
LogManager.java | Class | LogManager is used to manage named Logger s and
any shared logging properties.
There is one global LogManager instance in the application,
which can be obtained by calling the static method
LogManager.getLogManager() .
All methods on this type can be taken as being thread safe.
The LogManager class can be specified by the
"java.util.logging.manager" system property. |
LogRecord.java | Class | A LogRecord object represents a logging request. |
MemoryHandler.java | Class | MemoryHandler is a Handler that 'remembers' a
finite number of LogRecord s at a time and stores them in a
buffer without formatting them. |
SimpleFormatter.java | Class | SimpleFormatter can be used to print a summary of the
information contained in a LogRecord object in a human
readable format. |
SocketHandler.java | Class | A handler that writes log messages to a socket connection.
This handler reads the following properties from the log manager to
initialize itself:
- java.util.logging.ConsoleHandler.level specifies the logging level,
defaults to
Level.ALL if this property is not found or has an
invalid value;
- java.util.logging.SocketHandler.filter specifies the name of the filter
class to be associated with this handler, defaults to
null if
this property is not found or has an invalid value;
- java.util.logging.SocketHandler.formatter specifies the name of the
formatter class to be associated with this handler, defaults to
java.util.logging.XMLFormatter if this property is not found
or has an invalid value;
- java.util.logging.SocketHandler.encoding specifies the encoding this
handler will use to encode log messages, defaults to
null if
this property is not found or has an invalid value.
- java.util.logging.SocketHandler.host specifies the name of the host that
this handler should connect to.
|
StreamHandler.java | Class | A StreamHandler object writes log messages to an output
stream, that is, an object of type java.io.OutputStream .
A StreamHandler reads the following properties from the log
manager to initialize itself:
- java.util.logging.StreamHandler.encoding - the name of the character set
encoding.
|
XMLFormatter.java | Class | Format a given LogRecord into string represents XML. |