org.apache.felix.mosgi.jmx.remotelogger
Class Logger

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.apache.felix.mosgi.jmx.remotelogger.Logger
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, LoggerMBean, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener, org.osgi.service.log.LogListener

public class Logger
extends javax.management.NotificationBroadcasterSupport
implements org.osgi.service.log.LogListener, org.osgi.framework.BundleActivator, org.osgi.framework.ServiceListener, LoggerMBean, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Logger()
           
 
Method Summary
 java.lang.Integer getLogLvl()
           
 void logged(org.osgi.service.log.LogEntry log)
           
 void logged(org.osgi.service.log.LogEntry log, boolean oldLog)
           
 void sendOldLog()
           
 void serviceChanged(org.osgi.framework.ServiceEvent serviceevent)
           
 void setLogLvl(java.lang.Integer lvl)
           
 void start(org.osgi.framework.BundleContext bc)
           
 void stop(org.osgi.framework.BundleContext bc)
           
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger()
Method Detail

sendOldLog

public void sendOldLog()
Specified by:
sendOldLog in interface LoggerMBean

setLogLvl

public void setLogLvl(java.lang.Integer lvl)
Specified by:
setLogLvl in interface LoggerMBean

getLogLvl

public java.lang.Integer getLogLvl()
Specified by:
getLogLvl in interface LoggerMBean

serviceChanged

public void serviceChanged(org.osgi.framework.ServiceEvent serviceevent)
Specified by:
serviceChanged in interface org.osgi.framework.ServiceListener

logged

public void logged(org.osgi.service.log.LogEntry log)
Specified by:
logged in interface org.osgi.service.log.LogListener

logged

public void logged(org.osgi.service.log.LogEntry log,
                   boolean oldLog)

start

public void start(org.osgi.framework.BundleContext bc)
           throws java.lang.Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws java.lang.Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
java.lang.Exception