org.apache.felix.http.base.internal.logger
Class LogServiceLogger

java.lang.Object
  extended by org.apache.felix.http.base.internal.logger.AbstractLogger
      extended by org.apache.felix.http.base.internal.logger.LogServiceLogger
All Implemented Interfaces:
LogService

public final class LogServiceLogger
extends AbstractLogger


Field Summary
 
Fields inherited from interface org.osgi.service.log.LogService
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Constructor Summary
LogServiceLogger(BundleContext context)
           
 
Method Summary
 void close()
           
 void log(ServiceReference ref, int level, String message, Throwable cause)
          Logs a message with an exception associated and a ServiceReference object.
 
Methods inherited from class org.apache.felix.http.base.internal.logger.AbstractLogger
log, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogServiceLogger

public LogServiceLogger(BundleContext context)
Method Detail

close

public void close()

log

public void log(ServiceReference ref,
                int level,
                String message,
                Throwable cause)
Description copied from interface: LogService
Logs a message with an exception associated and a ServiceReference object.

Parameters:
ref - The ServiceReference object of the service that this message is associated with.
level - The severity of the message. This should be one of the defined log levels but may be any integer that is interpreted in a user defined way.
message - Human readable string describing the condition or null.
cause - The exception that reflects the condition or null.
See Also:
LogService.LOG_ERROR, LogService.LOG_WARNING, LogService.LOG_INFO, LogService.LOG_DEBUG


Copyright © 2011 Apache Software Foundation. All Rights Reserved.