|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.util.Logger
public class Logger
iPOJO Logger. This logger send log message to a log service if presents.
Field Summary | |
---|---|
static int |
DEBUG
Log Level DEBUG. |
static int |
ERROR
Log Level ERROR. |
static int |
INFO
Log Level INFO. |
static java.lang.String |
IPOJO_LOG_LEVEL
Ipojo default log level property. |
static int |
WARNING
Log Level WARNING. |
Constructor Summary | |
---|---|
Logger(org.osgi.framework.BundleContext context,
java.lang.String name)
Constructor. |
|
Logger(org.osgi.framework.BundleContext context,
java.lang.String name,
int level)
Constructor. |
Method Summary | |
---|---|
void |
log(int level,
java.lang.String msg)
Log a message. |
void |
log(int level,
java.lang.String msg,
java.lang.Throwable exception)
Log a message with an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IPOJO_LOG_LEVEL
public static final int ERROR
public static final int WARNING
public static final int INFO
public static final int DEBUG
Constructor Detail |
---|
public Logger(org.osgi.framework.BundleContext context, java.lang.String name, int level)
context
- : bundle contextname
- : name of the loggerlevel
- : trace levelpublic Logger(org.osgi.framework.BundleContext context, java.lang.String name)
context
- : bundle contextname
- : name of the loggerMethod Detail |
---|
public void log(int level, java.lang.String msg)
level
- : level of the messagemsg
- : the message to logpublic void log(int level, java.lang.String msg, java.lang.Throwable exception)
level
- : level of the messagemsg
- : message to logexception
- : exception attached to the message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |