public class Logger extends Object
| 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)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
log(int level,
String message)
Logs a message.
|
void |
log(int level,
String message,
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,
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,
String message,
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)Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.