Datasheet
Property Name Description Default Value
ConsoleHandler.level Log level for the handler Level.INFO
ConsoleHandler.filter Filter to use Undefined
ConsoleHandler.formatter Formatter to use java.util.logging
.SimpleFormatter
ConsoleHandler.encoding
Character set encoding to use Default platform encoding
The
SocketHandler writes log messages to the network over a specified TCP port. The properties listed
in the following table are used by the
SocketHandler. The default constructor uses the properties
defined, and a second constructor allows the specification of the host and port
SocketHandler(String
host, int port)
. The close() method flushes and closes the output stream, and the publish()
method flushes the stream after each record is written.
Property Name Description Default Value
SocketHandler.level Log level for the handler Level.INFO
SocketHandler.filter Filter to use undefined
SocketHandler.formatter Formatter to use java.util.logging
.XMLFormatter
SocketHandler.encoding
Character set encoding to use Default platform encoding
SocketHandler.host Target host name to connect to undefined
SocketHandler.port Target TCP port to use undefined
The
FileHandler is able to write to a single file, or write to a rotating set of files as each file reaches a
specified maximum size. The next number in a sequence is added to the end of the name of each rotating
file, unless a generation (sequence) pattern is specified elsewhere. The properties for the
FileHandler
are listed in the following table.
Property Name Description Default Value
FileHandler.level Log level for the handler. Level.INFO
FileHandler.filter Filter to use. undefined
FileHandler.formatter Formatter to use. java.util.logging
.XMLFormatter
FileHandler.encoding
Character set encoding to use. Default platform encoding
FileHandler.limit Specifies approximate 0
maximum number of bytes to
write to a file. 0 means no limit.
Table continued on following page
49
Chapter 1: Key Java Language Features and Libraries
05_777106 ch01.qxp 11/28/06 10:43 PM Page 49