|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraccoon.core.log.LogConsole
public final class LogConsole
The console logger.
| Field Summary |
|---|
| Fields inherited from interface raccoon.api.log.ILogger |
|---|
LEVEL_DEBUG, LEVEL_ERROR, LEVEL_INFO, LEVEL_WARN, PTY_LOGGER |
| Constructor Summary | |
|---|---|
LogConsole()
|
|
| 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 |
setLogLevel(int pLogLevel)
Defines the log level that is active. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogConsole()
| Method Detail |
|---|
public void setLogLevel(int pLogLevel)
pLogLevel - the new log level.public boolean isDebugEnabled()
isDebugEnabled in interface ILoggerpublic boolean isInfoEnabled()
isInfoEnabled in interface ILoggertrue if info mode is enabledpublic boolean isWarnEnabled()
isWarnEnabled in interface ILoggertrue if warn mode is enabledpublic boolean isErrorEnabled()
isErrorEnabled in interface ILoggertrue if error mode is enabledpublic void info(java.lang.String pMessage)
String into the log only if the INFO level is enabled.
info in interface ILoggerpMessage - the message to log.
public void info(java.lang.String pMessage,
java.lang.Throwable pThrowable)
String and an Exception into the log only if the INFO level
is enabled.
info in interface ILoggerpMessage - the message to log.pThrowable - the throwable to log.
public 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");
info in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.
public 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.
info in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.pThrowable - the throwable to log.info(String, Object[])public void debug(java.lang.String pMessage)
String into the log only if the DEBUG
level is enabled.
debug in interface ILoggerpMessage - the message to log.
public void debug(java.lang.String pMessage,
java.lang.Throwable pThrowable)
String and an Exception into the log
only if the DEBUG level is enabled.
debug in interface ILoggerpMessage - the message to log.pThrowable - the throwable to log.
public void debug(java.lang.String pMessage,
java.lang.Object[] pParams)
String into the log only if the DEBUG
level is enabled.
debug in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.info(String, Object[])
public 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.
debug in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.pThrowable - the throwable to log.info(String, Object[], Throwable)public void warn(java.lang.String pMessage)
String into the log only if the WARN
level is enabled.
warn in interface ILoggerpMessage - the message to log.
public void warn(java.lang.String pMessage,
java.lang.Throwable pThrowable)
String and an Exception into the log
only if the WARN level is enabled.
warn in interface ILoggerpThrowable - the throwable to log.pMessage - the message to log.
public void warn(java.lang.String pMessage,
java.lang.Object[] pParams)
String into the log only if the WARN
level is enabled.
warn in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.info(String, Object[])
public 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.
warn in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.pThrowable - the throwable to log.info(String, Object[], Throwable)public void error(java.lang.String pMessage)
String into the log only if the ERROR
level is enabled.
error in interface ILoggerpMessage - the message to log.
public void error(java.lang.String pMessage,
java.lang.Throwable pThrowable)
String and an Exception into the log
only if the ERROR level is enabled.
error in interface ILoggerpThrowable - the throwable to log.pMessage - the message to log.
public void error(java.lang.String pMessage,
java.lang.Object[] pParams)
String into the log only if the ERROR
level is enabled.
error in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.info(String, Object[])
public 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.
error in interface ILoggerpMessage - the message to log.pParams - a list of objects that implement the toString() method.pThrowable - the throwable to log.info(String, Object[], Throwable)public java.lang.String getCategoryName()
getCategoryName in interface ILogger
public void setCategoryName(java.lang.String pCategoryName)
throws java.lang.IllegalStateException
setCategoryName in interface ILoggerpCategoryName - the category to use for this session.
java.lang.IllegalStateException - if the component is already runningpublic java.lang.String getLoggerName()
getLoggerName in interface ILogger
public void setLoggerName(java.lang.String pLoggerName)
throws java.lang.IllegalStateException
setLoggerName in interface ILoggerpLoggerName - 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 | |||||||||