public class LogHandler extends Handler implements Cloneable
Use setPublisher() or constructor with ILogPublisher parameter.
See LogPublisher and it's public static inner classes ConsolePublisher and FilePublisher.
| Modifier and Type | Class and Description |
|---|---|
static class |
LogHandler.ConsoleLogHandler |
| Modifier and Type | Field and Description |
|---|---|
protected ILogPublisher |
publisher |
| Constructor and Description |
|---|
LogHandler()
Creates empty log handler without any publisher.
|
LogHandler(ILogPublisher publisher)
Creates log handler with specific publisher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
equals(Object obj) |
void |
flush() |
ILogPublisher |
getPublisher()
Returns actual publisher of the hanlder.
|
int |
hashCode() |
void |
publish(LogRecord record) |
void |
setPublisher(ILogPublisher publisher)
Sets new publisher to the handler.
|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevelprotected ILogPublisher publisher
public LogHandler()
public LogHandler(ILogPublisher publisher)
publisher - public ILogPublisher getPublisher()
public void setPublisher(ILogPublisher publisher)
publisher - public void close()
throws SecurityException
close in class HandlerSecurityExceptionCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.