public class Logger
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static int |
LOG_DEBUG |
|
static int |
LOG_ERROR |
|
static int |
LOG_INFO |
|
static int |
LOG_WARNING |
| Constructor | Description |
|---|---|
Logger(org.osgi.framework.BundleContext context) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
log(int level,
java.lang.String message) |
Logs a message.
|
void |
log(int level,
java.lang.String message,
java.lang.Throwable exception) |
Logs a message.
|
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 Logger(org.osgi.framework.BundleContext context)
context - bundle contextpublic void log(int level,
java.lang.String message)
level - The severity of the message. Tmessage - Human readable string describing the condition or
null.LogService.log(int, String)public void log(int level,
java.lang.String message,
java.lang.Throwable exception)
level - The severity of the message. Tmessage - Human readable string describing the condition or
null.exception - The exception that reflects the condition or
null.LogService.log(int, String, Throwable)