public class Logger extends Object implements org.osgi.framework.ServiceListener
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(org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
doLog(org.osgi.framework.ServiceReference sr,
int level,
String msg,
Throwable throwable) |
void |
log(int level,
String msg) |
void |
log(int level,
String msg,
Throwable throwable) |
void |
log(org.osgi.framework.ServiceReference sr,
int level,
String msg) |
void |
log(org.osgi.framework.ServiceReference sr,
int level,
String msg,
Throwable throwable) |
void |
serviceChanged(org.osgi.framework.ServiceEvent event)
This method implements the callback for the ServiceListener interface.
|
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, String msg)
public final void log(org.osgi.framework.ServiceReference sr, int level, String msg)
public final void log(org.osgi.framework.ServiceReference sr, int level, String msg, Throwable throwable)
protected void doLog(org.osgi.framework.ServiceReference sr, int level, String msg, Throwable throwable)
public final void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.