public class Logger extends java.lang.Object implements Log
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IPOJO_LOG_LEVEL_HEADER
iPOJO log level manifest header.
|
static java.lang.String |
IPOJO_LOG_LEVEL_PROP
The iPOJO default log level property.
|
Constructor and Description |
---|
Logger(org.osgi.framework.BundleContext context,
ComponentInstance instance)
Create a logger.
|
Logger(org.osgi.framework.BundleContext context,
ComponentInstance instance,
int level)
Creates a logger.
|
Logger(org.osgi.framework.BundleContext context,
java.lang.String name)
Create a logger.
|
Logger(org.osgi.framework.BundleContext context,
java.lang.String name,
int level)
Creates a logger.
|
Modifier and Type | Method and Description |
---|---|
void |
log(int level,
java.lang.String msg)
Logs a message.
|
void |
log(int level,
java.lang.String msg,
java.lang.Throwable exception)
Logs a message with an exception.
|
public static final java.lang.String IPOJO_LOG_LEVEL_PROP
public static final java.lang.String IPOJO_LOG_LEVEL_HEADER
public Logger(org.osgi.framework.BundleContext context, java.lang.String name, int level)
context
- the bundle contextname
- the name of the loggerlevel
- the trace levelpublic Logger(org.osgi.framework.BundleContext context, ComponentInstance instance, int level)
context
- the bundle contextinstance
- the instancelevel
- the trace levelpublic Logger(org.osgi.framework.BundleContext context, java.lang.String name)
context
- the bundle contextname
- the name of the loggerpublic Logger(org.osgi.framework.BundleContext context, ComponentInstance instance)
context
- the bundle contextinstance
- the instanceCopyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.