public class Logger
extends java.lang.Object
LogService
. This class is in many ways
similar to the one used in the system bundle for that same purpose.Modifier and Type | Field and Description |
---|---|
static int |
LOG_DEBUG |
static int |
LOG_ERROR |
static int |
LOG_INFO |
static int |
LOG_WARNING |
Constructor and Description |
---|
Logger(BundleContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
debug() |
void |
debug(java.lang.String format,
java.lang.Object... params) |
void |
debug(java.lang.String format,
java.lang.Throwable err,
java.lang.Object... params) |
protected void |
doLog(ServiceReference sr,
int level,
java.lang.String msg,
java.lang.Throwable throwable) |
void |
err(java.lang.String format,
java.lang.Object... params) |
void |
err(java.lang.String format,
java.lang.Throwable err,
java.lang.Object... params) |
java.lang.String |
getDebugKey() |
boolean |
info() |
void |
info(java.lang.String format,
java.lang.Object... params) |
void |
info(java.lang.String format,
java.lang.Throwable err,
java.lang.Object... params) |
void |
log(int level,
java.lang.String msg) |
void |
log(int level,
java.lang.String msg,
java.lang.Throwable throwable) |
void |
log(ServiceReference sr,
int level,
java.lang.String msg) |
void |
log(ServiceReference sr,
int level,
java.lang.String msg,
java.lang.Throwable throwable) |
void |
serviceChanged(ServiceEvent event)
This method implements the callback for the ServiceListener interface.
|
void |
setDebugKey(java.lang.String debugKey) |
void |
setEnabledLevel(int enabledLevel) |
void |
warn(java.lang.String format,
java.lang.Object... params) |
void |
warn(java.lang.String format,
java.lang.Throwable err,
java.lang.Object... params) |
public static final int LOG_ERROR
public static final int LOG_WARNING
public static final int LOG_INFO
public static final int LOG_DEBUG
public final void log(int level, java.lang.String msg)
public final void log(int level, java.lang.String msg, java.lang.Throwable throwable)
public final void log(ServiceReference sr, int level, java.lang.String msg)
public final void log(ServiceReference sr, int level, java.lang.String msg, java.lang.Throwable throwable)
protected void doLog(ServiceReference sr, int level, java.lang.String msg, java.lang.Throwable throwable)
public final void serviceChanged(ServiceEvent event)
public void setEnabledLevel(int enabledLevel)
public void setDebugKey(java.lang.String debugKey)
public java.lang.String getDebugKey()
public void err(java.lang.String format, java.lang.Object... params)
public void err(java.lang.String format, java.lang.Throwable err, java.lang.Object... params)
public void warn(java.lang.String format, java.lang.Object... params)
public void warn(java.lang.String format, java.lang.Throwable err, java.lang.Object... params)
public boolean info()
public void info(java.lang.String format, java.lang.Object... params)
public void info(java.lang.String format, java.lang.Throwable err, java.lang.Object... params)
public boolean debug()
public void debug(java.lang.String format, java.lang.Object... params)
public void debug(java.lang.String format, java.lang.Throwable err, java.lang.Object... params)