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 writes logging records into a specified file or a
rotating set of files.
When a set of files is used and a given amount of data has been written to
one file, then this file is closed and another file is opened. |
Filter.java | Interface | A
Filter provides a mechanism for exercising fine-grained control
over which 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 | LoggingMXBean is 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 maintain configuration properties of the
logging framework, and to manage a hierarchical namespace of all named
Logger objects.
There is only one global
LogManager instance in the
application, which can be get by calling static method
LogManager.getLogManager() . |
LogRecord.java | Class | A
LogRecord object represents a logging request. |
MemoryHandler.java | Class | A
Handler put the description of log events into a cycled memory
buffer.
Mostly this
MemoryHandler just puts the given
LogRecord into
the internal buffer and doesn't perform any formatting or any other process.
When the buffer is full, the earliest buffered records will be discarded.
Every
MemoryHandler has a target handler, and push action can be
triggered so that all buffered records will be output to the target handler
and normally the latter will publish the records. |
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, objects of the class
java.io.OutputStream .
A
StreamHandler object reads the following properties from the log
manager to initialize itself. |
XMLFormatter.java | Class | Formatter to convert a
LogRecord into an XML string. |