|
|||||||||
| 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(java.lang.Object obj)
|
void |
flush()
|
ILogPublisher |
getPublisher()
Returns actual publisher of the hanlder. |
int |
hashCode()
|
void |
publish(java.util.logging.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 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic ILogPublisher getPublisher()
public void setPublisher(ILogPublisher publisher)
publisher -
public void close()
throws java.lang.SecurityException
close in class java.util.logging.Handlerjava.lang.SecurityExceptionpublic void flush()
flush in class java.util.logging.Handlerpublic void publish(java.util.logging.LogRecord record)
publish in class java.util.logging.Handler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||