|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.logging.Handler
org.xmlBlaster.util.log.XbNotifyHandler
Dispatch logging output to registered listeners. As java.util.logging framework supports max. one Filter per Logger/Handler we dispatch it further here.
Note: You may not directly add a Filter to java.util.logging.Logger/Handler as this would destroy our registration.
| Constructor Summary | |
XbNotifyHandler()
|
|
XbNotifyHandler(java.lang.String id)
|
|
| Method Summary | |
void |
close()
|
void |
flush()
|
I_LogListener[] |
getAllListeners()
Get a snapshot of all listeners. |
I_LogListener[] |
getErrorListeners()
Get a snapshot of error listeners. |
java.lang.String |
getId()
|
I_LogListener[] |
getWarnListeners()
Get a snapshot of warn listeners. |
static XbNotifyHandler |
instance()
|
static void |
main(java.lang.String[] args)
|
void |
publish(java.util.logging.LogRecord record)
|
boolean |
register(int level,
I_LogListener logNotification)
Register a listener. |
boolean |
unregister(int level,
I_LogListener logNotification)
Remove the listener. |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XbNotifyHandler()
public XbNotifyHandler(java.lang.String id)
| Method Detail |
public static XbNotifyHandler instance()
public void close()
throws java.lang.SecurityException
java.lang.SecurityExceptionpublic void flush()
public void publish(java.util.logging.LogRecord record)
public boolean register(int level,
I_LogListener logNotification)
level/logNotification combination is already registered,
the call leaves everything unchanged and returns false.
level - to add, Level.SEVERE.intValue() | Level.WARNING.intValue() | Level.ALL.intValue()logNotification - The interface to send the logging
public boolean unregister(int level,
I_LogListener logNotification)
level - Which levels you want to remove. Level.SEVERE.intValue() | Level.WARNING.intValue() | Level.ALL.intValue()
public I_LogListener[] getWarnListeners()
public java.lang.String getId()
public I_LogListener[] getErrorListeners()
public I_LogListener[] getAllListeners()
public static void main(java.lang.String[] args)
|
xmlBlaster 1.6.2 client API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||