|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.lang.Logger
This class can be used for writing out diagnostic and error messages to the output stream. A wrapper for that “System.out.println()” method that formats the output with the name of the originating class.
Field Summary | |
static int |
LOG_DEBUG
Similar the Service.DEBUG |
static int |
LOG_ERROR
Similar the Service.ERROR |
static int |
LOG_INFO
Similar the Service.INFO |
static int |
LOG_WARNING
Similar the Service.WARNING |
Constructor Summary | |
Logger()
|
Method Summary | |
void |
debug(java.lang.String str)
This will only display messages if debugging is enabled with the enableDebug()
method |
static void |
diag(java.lang.Class cls,
java.lang.String str)
Use this to display diagnostic messages, if you are not extending Diag |
static void |
diag(java.lang.Object obj,
java.lang.String str)
Use this to display diagnostic messages, if you are not extending Diag |
void |
diag(java.lang.String str)
Use this to display diagnostic messages, if you are extending Diag |
static void |
diag(java.lang.String sClassName,
java.lang.String str)
Use this to display diagnostic messages, if you are not extending Diag |
void |
enableDebug(boolean bState)
Enable debug messages to be displayed by setting the debug state flag. |
static void |
error(java.lang.Class cls,
java.lang.String str)
Use this to display error messages, if you are not extending Diag |
static void |
error(java.lang.Object obj,
java.lang.String str)
Use this to display error messages, if you are not extending Diag |
void |
error(java.lang.String str)
Use this to display error messages, if you are extending Diag |
static void |
error(java.lang.String sClassName,
java.lang.String str)
Use this to display error messages, if you are not extending Diag |
boolean |
isDebugEnabled()
Check to see if the debug state flag has been set to true or false. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LOG_DEBUG
public static final int LOG_INFO
public static final int LOG_WARNING
public static final int LOG_ERROR
Constructor Detail |
public Logger()
Method Detail |
public static final void diag(java.lang.Object obj, java.lang.String str)
obj
- method caller (usually the this member)str
- data to be displayedpublic static final void diag(java.lang.Class cls, java.lang.String str)
cls
- Class calling the method (usually the .class member)str
- data to be displayedpublic static final void diag(java.lang.String sClassName, java.lang.String str)
sClassName
- name of the class to prepend to log messagestr
- data to be displayedpublic static final void error(java.lang.Object obj, java.lang.String str)
obj
- method caller (usually the this member)str
- data to be displayedpublic static final void error(java.lang.Class cls, java.lang.String str)
cls
- Class calling the method (usually the .class member)str
- data to be displayedpublic static final void error(java.lang.String sClassName, java.lang.String str)
sClassName
- name of the class to prepend to error messagestr
- data to be displayedpublic void diag(java.lang.String str)
str
- data to be displayedpublic void error(java.lang.String str)
str
- data to be displayedpublic void debug(java.lang.String str)
enableDebug()
method
str
- str data to be displayedpublic final void enableDebug(boolean bState)
bState
- true if debugging should be enable; false otherwise.public final boolean isDebugEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |