org.apache.felix.http.base.internal.logger
Class ConsoleLogger
java.lang.Object
org.apache.felix.http.base.internal.logger.AbstractLogger
org.apache.felix.http.base.internal.logger.ConsoleLogger
- All Implemented Interfaces:
- LogService
public final class ConsoleLogger
- extends AbstractLogger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleLogger
public ConsoleLogger()
ConsoleLogger
public ConsoleLogger(PrintStream out)
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.