public class LogReporter extends Logger implements LogService
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNINGLOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING| Constructor and Description |
|---|
LogReporter(Reporter reporter) |
| Modifier and Type | Method and Description |
|---|---|
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. |
debug, doLog, getLogLevel, isDebugEnabled, log, log, logUsesConstraintViolation, setLogLevelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlog, logpublic 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_DEBUGCopyright (c) aQute SARL (2000, 2019) and others. All Rights Reserved.