|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILogger
The interface for all log type services.
The order of priority is as follows : ERROR > WARNING > DEBUG > INFO
That means that if the WARNING
level is enabled only
ERROR
and WARNING
messages will be logged the other
levels will be ignored.
Field Summary | |
---|---|
static int |
LEVEL_DEBUG
The DEBUG level. |
static int |
LEVEL_ERROR
The ERROR level. |
static int |
LEVEL_INFO
The INFO level. |
static int |
LEVEL_WARN
The WARN level. |
static java.lang.String |
PTY_LOGGER
The name of the property for components using implementations of this interface. |
Method Summary | |
---|---|
void |
debug(java.lang.String pMessage)
Inserts a String into the log only if the DEBUG
level is enabled. |
void |
debug(java.lang.String pMessage,
java.lang.Object[] pParams)
Inserts a String into the log only if the DEBUG
level is enabled. |
void |
debug(java.lang.String pMessage,
java.lang.Object[] pParams,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the DEBUG level is enabled. |
void |
debug(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the DEBUG level is enabled. |
void |
error(java.lang.String pMessage)
Inserts a String into the log only if the ERROR
level is enabled. |
void |
error(java.lang.String pMessage,
java.lang.Object[] pParams)
Inserts a String into the log only if the ERROR
level is enabled. |
void |
error(java.lang.String pMessage,
java.lang.Object[] pParams,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the ERROR level is enabled. |
void |
error(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the ERROR level is enabled. |
java.lang.String |
getCategoryName()
Deprecated. As of Raccoon v0.8 |
java.lang.String |
getLoggerName()
The logger under which this component is logging the information. |
void |
info(java.lang.String pMessage)
Inserts a String into the log only if the INFO
level is enabled. |
void |
info(java.lang.String pMessage,
java.lang.Object[] pParams)
Inserts a String into the log only if the INFO
level is enabled. |
void |
info(java.lang.String pMessage,
java.lang.Object[] pParams,
java.lang.Throwable pThrowable)
Insert a String and an exception into the log
only if the INFO level is enabled. |
void |
info(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the INFO level is enabled. |
boolean |
isDebugEnabled()
Checks if debug mode is enabled. |
boolean |
isErrorEnabled()
Checks if error mode is enabled. |
boolean |
isInfoEnabled()
Checks if info mode is enabled. |
boolean |
isWarnEnabled()
Checks if warn mode is enabled. |
void |
setCategoryName(java.lang.String pCategoryName)
Deprecated. As of Raccoon v0.8 |
void |
setLoggerName(java.lang.String pLoggerName)
Defines the logger under which this component should log the information. |
void |
warn(java.lang.String pMessage)
Inserts a String into the log only if the WARN
level is enabled. |
void |
warn(java.lang.String pMessage,
java.lang.Object[] pParams)
Inserts a String into the log only if the WARN
level is enabled. |
void |
warn(java.lang.String pMessage,
java.lang.Object[] pParams,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the WARN level is enabled. |
void |
warn(java.lang.String pMessage,
java.lang.Throwable pThrowable)
Inserts a String and an Exception into the log
only if the WARN level is enabled. |
Field Detail |
---|
static final java.lang.String PTY_LOGGER
static final int LEVEL_ERROR
static final int LEVEL_WARN
static final int LEVEL_INFO
static final int LEVEL_DEBUG
Method Detail |
---|
boolean isDebugEnabled()
boolean isInfoEnabled()
true
if info mode is enabledboolean isWarnEnabled()
true
if warn mode is enabledboolean isErrorEnabled()
true
if error mode is enabledvoid info(java.lang.String pMessage)
String
into the log only if the INFO
level is enabled.
pMessage
- the message to log.void info(java.lang.String pMessage, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the INFO
level is enabled.
pMessage
- the message to log.pThrowable
- the throwable to log.void info(java.lang.String pMessage, java.lang.Object[] pParams)
String
into the log only if the INFO
level is enabled.
The String
is of course a specific String, because each occurrence
of {i} in that String will be replaced by Object[i].toString()
info("Hello {0}, you have {1}, new Object[] {"Kathleen", "mail"});
info("Hello Kathleen, you have mail");
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.void info(java.lang.String pMessage, java.lang.Object[] pParams, java.lang.Throwable pThrowable)
String
and an exception
into the log
only if the INFO
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.pThrowable
- the throwable to log.info(String, Object[])
void debug(java.lang.String pMessage)
String
into the log only if the DEBUG
level is enabled.
pMessage
- the message to log.void debug(java.lang.String pMessage, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the DEBUG
level is enabled.
pMessage
- the message to log.pThrowable
- the throwable to log.void debug(java.lang.String pMessage, java.lang.Object[] pParams)
String
into the log only if the DEBUG
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.info(String, Object[])
void debug(java.lang.String pMessage, java.lang.Object[] pParams, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the DEBUG
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.pThrowable
- the throwable to log.info(String, Object[], Throwable)
void warn(java.lang.String pMessage)
String
into the log only if the WARN
level is enabled.
pMessage
- the message to log.void warn(java.lang.String pMessage, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the WARN
level is enabled.
pThrowable
- the throwable to log.pMessage
- the message to log.void warn(java.lang.String pMessage, java.lang.Object[] pParams)
String
into the log only if the WARN
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.info(String, Object[])
void warn(java.lang.String pMessage, java.lang.Object[] pParams, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the WARN
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.pThrowable
- the throwable to log.info(String, Object[], Throwable)
void error(java.lang.String pMessage)
String
into the log only if the ERROR
level is enabled.
pMessage
- the message to log.void error(java.lang.String pMessage, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the ERROR
level is enabled.
pThrowable
- the throwable to log.pMessage
- the message to log.void error(java.lang.String pMessage, java.lang.Object[] pParams)
String
into the log only if the ERROR
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.info(String, Object[])
void error(java.lang.String pMessage, java.lang.Object[] pParams, java.lang.Throwable pThrowable)
String
and an Exception
into the log
only if the ERROR
level is enabled.
pMessage
- the message to log.pParams
- a list of objects that implement the toString() method.pThrowable
- the throwable to log.info(String, Object[], Throwable)
java.lang.String getCategoryName()
void setCategoryName(java.lang.String pCategoryName) throws java.lang.IllegalStateException
pCategoryName
- the category to use for this session.
java.lang.IllegalStateException
- if the component is already runningjava.lang.String getLoggerName()
void setLoggerName(java.lang.String pLoggerName) throws java.lang.IllegalStateException
pLoggerName
- the logger to use for this session.
java.lang.IllegalStateException
- if the component is already running
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |