| Constructor and Description |
|---|
LoggerImpl(ExtendedLogServiceImpl logServiceImpl,
String name) |
| 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) |
public LoggerImpl(ExtendedLogServiceImpl logServiceImpl, String name)
public String getName()
LoggerLogger
object.public boolean isLoggable(int level)
LoggerLogger.isLoggable in interface Loggerlevel - 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),
LogFilterpublic void log(int level,
String message)
log in interface LoggerLogService.log(int, String)public void log(int level,
String message,
Throwable exception)
log in interface LoggerLogService.log(int, String, Throwable)public void log(ServiceReference sr, int level, String message)
log in interface LoggerLogService.log(ServiceReference, int, String)public void log(ServiceReference sr, int level, String message, Throwable exception)
log in interface LoggerLogService.log(ServiceReference, int, String, Throwable)public void log(Object context, int level, String message)
LoggerLogService
Logs a message with a context objectlog in interface Loggercontext - 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)public void log(Object context, int level, String message, Throwable exception)
Loggerlog in interface Loggercontext - 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)Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.