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

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

public final class ConsoleLogger
extends AbstractLogger


Field Summary
 
Fields inherited from interface org.osgi.service.log.LogService
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING
 
Constructor Summary
ConsoleLogger()
           
ConsoleLogger(PrintStream out)
           
 
Method Summary
 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

ConsoleLogger

public ConsoleLogger()

ConsoleLogger

public ConsoleLogger(PrintStream out)
Method Detail

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 © 2013 The Apache Software Foundation. All Rights Reserved.