public interface Logger
LogService.LogService| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name associated with this
Logger
object. |
boolean |
isLoggable(int level)
Pre-checks if there are LogListeners who are listening for a matching log entry from this
Logger. |
void |
log(int level,
String message) |
void |
log(int level,
String message,
Throwable exception) |
void |
log(Object context,
int level,
String message)
Extends the
LogService
Logs a message with a context object |
void |
log(Object context,
int level,
String message,
Throwable exception)
Logs a message with an exception associated and a
context object.
|
void |
log(ServiceReference<?> sr,
int level,
String message) |
void |
log(ServiceReference<?> sr,
int level,
String message,
Throwable exception) |
void log(int level,
String message)
LogService.log(int, String)void log(ServiceReference<?> sr, int level, String message)
void log(ServiceReference<?> sr, int level, String message, Throwable exception)
void log(Object context, int level, String message)
LogService
Logs a message with a context objectcontext - The context object this message is associated with.level - The log level or severity of the message.message - A human readable string to associate with log entry.LogService.log(int, String)void log(Object context, int level, String message, Throwable exception)
context - The context object this message is associated with.level - The log level or severity of the message.message - A human readable string to associate with log entry.exception - The exception associated with this entryLogService.log(int, String, Throwable)boolean isLoggable(int level)
Logger.level - The log level or severity of the message.boolean True if there a LogListener listening that can handle a log entry for this log level; false otherwise.ExtendedLogReaderService.addLogListener(org.osgi.service.log.LogListener, LogFilter),
LogFilterString getName()
Logger
object.String containing the name associated with this
Logger object;null if no name is
associated.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.