org.apache.muse.core.platform.osgi
Class OSGiLogHandler

java.lang.Object
  extended by java.util.logging.Handler
      extended by org.apache.muse.core.platform.osgi.OSGiLogHandler

public class OSGiLogHandler
extends Handler

Author:
BarryAtkins

Field Summary
protected  OSGiLogListener _listener
           
 
Constructor Summary
OSGiLogHandler(String logfile)
           
 
Method Summary
 void close()
           
 void flush()
           
 void publish(LogRecord record)
           
static void setLogReaderService(org.osgi.service.log.LogReaderService logReaderService)
           
static void setLogService(org.osgi.service.log.LogService logService)
           
 
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
 

Field Detail

_listener

protected OSGiLogListener _listener
Constructor Detail

OSGiLogHandler

public OSGiLogHandler(String logfile)
               throws IOException
Throws:
IOException
Method Detail

setLogService

public static void setLogService(org.osgi.service.log.LogService logService)

setLogReaderService

public static void setLogReaderService(org.osgi.service.log.LogReaderService logReaderService)

publish

public void publish(LogRecord record)
Specified by:
publish in class Handler

close

public void close()
Specified by:
close in class Handler

flush

public void flush()
Specified by:
flush in class Handler


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.