|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.util.logging.Handler
cz.cuni.amis.pogamut.base.utils.logging.LogHandler
public class LogHandler
Handler for the messages - instantiated without publisher.
Use setPublisher() or constructor with ILogPublisher parameter.
See LogPublisher and it's public static inner classes ConsolePublisher and FilePublisher.
| Nested Class Summary | |
|---|---|
static class |
LogHandler.ConsoleLogHandler
|
| Field Summary | |
|---|---|
protected ILogPublisher |
publisher
|
| Constructor Summary | |
|---|---|
LogHandler()
Creates empty log handler without any publisher. |
|
LogHandler(ILogPublisher publisher)
Creates log handler with specific publisher. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ILogPublisher publisher
| Constructor Detail |
|---|
public LogHandler()
public LogHandler(ILogPublisher publisher)
publisher - | Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic ILogPublisher getPublisher()
public void setPublisher(ILogPublisher publisher)
publisher -
public void close()
throws SecurityException
close in class HandlerSecurityExceptionpublic void flush()
flush in class Handlerpublic void publish(LogRecord record)
publish in class Handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||