org.objectweb.util.monolog.wrapper.javaLog
Class JMXHandler
java.lang.Object
java.util.logging.Handler
org.objectweb.util.monolog.wrapper.javaLog.JMXHandler
- All Implemented Interfaces:
- NotificationBroadcaster, NotificationEmitter
public class JMXHandler
- extends Handler
- implements NotificationEmitter
The aim of this class is to permit to specify the output for the console
handler of the java.util.logging system.
This console handler is also able to choose the right ouput (System.err
or System.out) depending on the message level.
- Author:
- S.Chassande-Barrioz
| 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 |
oss
protected OutputStreamSwitcher oss
JMXHandler
public JMXHandler()
addNotificationListener
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
- Specified by:
addNotificationListener in interface NotificationBroadcaster
- Throws:
IllegalArgumentException
removeNotificationListener
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener in interface NotificationBroadcaster
- Throws:
ListenerNotFoundException
removeNotificationListener
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
- Specified by:
removeNotificationListener in interface NotificationEmitter
- Throws:
ListenerNotFoundException
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo in interface NotificationBroadcaster
publish
public void publish(LogRecord record)
- Specified by:
publish in class Handler
flush
public void flush()
- Specified by:
flush in class Handler
close
public void close()
throws SecurityException
- Specified by:
close in class Handler
- Throws:
SecurityException
Copyright © 2012 OW2 Consortium. All Rights Reserved.