public class ConsoleLogger.Facade extends java.lang.Object implements LogService
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING| Constructor and Description |
|---|
Facade(Bundle bundle,
ServiceRegistration<LogService> registration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
log(int level,
java.lang.String message)
Logs a message.
|
void |
log(int level,
java.lang.String message,
java.lang.Throwable exception)
Logs a message with an exception.
|
void |
log(ServiceReference sr,
int level,
java.lang.String message)
Logs a message associated with a specific
ServiceReference
object. |
void |
log(ServiceReference sr,
int level,
java.lang.String message,
java.lang.Throwable exception)
Logs a message with an exception associated and a
ServiceReference object. |
public Facade(Bundle bundle, ServiceRegistration<LogService> registration)
public void log(int level,
java.lang.String message)
LogService
The ServiceReference field and the Throwable field of the
LogEntry object will be set to null.
log in interface LogServicelevel - 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.LogService.LOG_ERROR,
LogService.LOG_WARNING,
LogService.LOG_INFO,
LogService.LOG_DEBUGpublic void log(int level,
java.lang.String message,
java.lang.Throwable exception)
LogService
The ServiceReference field of the LogEntry object will be
set to null.
log in interface LogServicelevel - 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 - The human readable string describing the condition or
null.exception - The exception that reflects the condition or
null.LogService.LOG_ERROR,
LogService.LOG_WARNING,
LogService.LOG_INFO,
LogService.LOG_DEBUGpublic void log(ServiceReference sr, int level, java.lang.String message)
LogServiceServiceReference
object.
The Throwable field of the LogEntry will be set to
null.
log in interface LogServicesr - The ServiceReference object of the service that this
message is associated with or null.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.LogService.LOG_ERROR,
LogService.LOG_WARNING,
LogService.LOG_INFO,
LogService.LOG_DEBUGpublic void log(ServiceReference sr, int level, java.lang.String message, java.lang.Throwable exception)
LogServiceServiceReference object.log in interface LogServicesr - 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.exception - The exception that reflects the condition or
null.LogService.LOG_ERROR,
LogService.LOG_WARNING,
LogService.LOG_INFO,
LogService.LOG_DEBUGpublic void close()
Copyright (c) aQute SARL (2000, 2019) and others. All Rights Reserved.