public abstract class Handler extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Handler()
Creates a new
Handler with Level.ALL and no
formatter. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Closes this Handler and frees all of its resources
|
abstract void |
flush()
Flushes an buffered output
|
Formatter |
getFormatter()
Returns the formatter for this handler
|
Level |
getLevel()
Returns the level below which this handler ignores
|
boolean |
isLoggable(LogRecord record)
Returns
true if a log record will be handled by this
handler. |
abstract void |
publish(LogRecord record)
Publishes a log record to this handler
|
void |
setFormatter(Formatter formatter)
Sets the formatter for this handler
|
void |
setLevel(Level level)
Sets the level below which this handler ignores
|
protected Handler()
Handler with Level.ALL and no
formatter.public abstract void close()
public abstract void flush()
public Formatter getFormatter()
public void setFormatter(Formatter formatter)
public Level getLevel()
public void setLevel(Level level)
public boolean isLoggable(LogRecord record)
true if a log record will be handled by this
handler.public abstract void publish(LogRecord record)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.