| java.lang.Object | |
| ↳ | java.util.logging.Handler |
Known Direct Subclasses
|
Known Indirect Subclasses
|
A Handler object accepts a logging request and exports the
desired messages to a target, for example, a file, the console, etc. It can
be disabled by setting its logging level to Level.OFF.
| Protected Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a
Handler object with a default error manager,
the default encoding, and the default logging level
Level.ALL. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Closes this handler.
| |||||||||||
Flushes any buffered output.
| |||||||||||
Gets the character encoding used by this handler.
| |||||||||||
Gets the error manager used by this handler to report errors during
logging.
| |||||||||||
Gets the filter used by this handler.
| |||||||||||
Gets the formatter used by this handler to format the logging messages.
| |||||||||||
Gets the logging level of this handler.
| |||||||||||
Determines whether the supplied log record need to be logged.
| |||||||||||
Accepts an actual logging request.
| |||||||||||
Sets the character encoding used by this handler.
| |||||||||||
Sets the error manager for this handler.
| |||||||||||
Sets the filter to be used by this handler.
| |||||||||||
Sets the formatter to be used by this handler.
| |||||||||||
Sets the logging level of this handler.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Report an error to the error manager associated with this handler.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
| |||||||||||
Constructs a Handler object with a default error manager,
the default encoding, and the default logging level
Level.ALL. It has no filter and no formatter.
Closes this handler. A flush operation will usually be performed and all the associated resources will be freed. Client applications should not use a handler after closing it.
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|
Flushes any buffered output.
Gets the character encoding used by this handler.
Gets the error manager used by this handler to report errors during logging.
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|
Gets the filter used by this handler.
Gets the formatter used by this handler to format the logging messages.
Gets the logging level of this handler.
Determines whether the supplied log record need to be logged. The logging levels will be checked as well as the filter.
| record | the log record to be checked |
|---|
true if the supplied log record need to be logged,
otherwise false
Accepts an actual logging request.
| record | the log record to be logged |
|---|
Sets the character encoding used by this handler. A null
value indicates the using of the default encoding.
| encoding | the character encoding to set |
|---|
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|---|
| UnsupportedEncodingException | If the specified encoding is not supported by the runtime. |
Sets the error manager for this handler.
| em | the error manager to set |
|---|
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|
Sets the filter to be used by this handler.
| newFilter | the filter to set |
|---|
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|
Sets the formatter to be used by this handler.
| newFormatter | the formatter to set |
|---|
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|
Sets the logging level of this handler.
| newLevel | the logging level to set |
|---|
| SecurityException | If a security manager determines that the caller does not have the required permission. |
|---|
Report an error to the error manager associated with this handler.
| msg | the error message |
|---|---|
| ex | the associated exception |
| code | the error code |