mx4j.log
public class LoggerBroadcaster extends NotificationBroadcasterSupport implements MBeanRegistration, LoggerBroadcasterMBean
Simply register this MBean in the MBeanServer, register one or more listener (eventually with filters
on the notification type), then call (directly or through MBeanServer) one of the start
operations. From this moment, MX4J internal logging is redirected to this MBean, and from here to all registered
listeners, basing on their filters.
Version: $Revision: 1.7 $
Nested Class Summary | |
---|---|
static class | LoggerBroadcaster.LoggerNotifier |
Method Summary | |
---|---|
protected Logger | createLoggerPrototype() |
MBeanNotificationInfo[] | getNotificationInfo() |
void | postDeregister() |
void | postRegister(Boolean registrationDone) |
void | preDeregister() |
ObjectName | preRegister(MBeanServer server, ObjectName name) |
void | removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) |
void | sendNotification(Notification n) |
void | start() |
void | start(String category) |
void | stop() |
void | stop(String category) |