public abstract class Handler extends Object
It may simply write messages to the standard output or a file, send it through a network, etc.
Constructor and Description |
---|
Handler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Close the handler and the associated resources (such as streams, connections, files).
|
abstract void |
flush()
Flush any buffered output.
|
abstract void |
publish(LogRecord record)
Publish a LogRecord.
|
public abstract void close() throws SecurityException
NOTE: this method is not called by the framework.
SecurityException
- if a security manager exits and if the caller does not have the appropriate permissions.public abstract void flush()
NOTE: this method is not called by the framework.
public abstract void publish(LogRecord record)
record
- the LogRecord to publish.