|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecttoxTree.logging.TTLogger
public class TTLogger
Logging facility
Field Summary | |
---|---|
int |
DEFAULT_STACK_LENGTH
Default number of StackTraceElements to be printed by debug(Exception). |
Constructor Summary | |
---|---|
TTLogger()
|
|
TTLogger(java.lang.Class classInst)
|
|
TTLogger(java.lang.Object object)
Constructs a LoggingTool which produces log lines indicating them to be for the Class of the Object . |
Method Summary | |
---|---|
static void |
configureLog4j(boolean console)
|
static void |
configureLog4j(java.lang.String file)
|
void |
debug(java.lang.Object object)
Shows DEBUG output for the Object. |
void |
debug(java.lang.Object object,
boolean bool)
Shows DEBUG output for the given Object's. |
void |
debug(java.lang.Object object,
double number)
Shows DEBUG output for the given Object's. |
void |
debug(java.lang.Object object,
int number)
Shows DEBUG output for the given Object's. |
void |
debug(java.lang.Object object,
java.lang.Object object2)
Shows DEBUG output for the given Object's. |
void |
debug(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3)
Shows DEBUG output for the given Object's. |
void |
debug(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4)
Shows DEBUG output for the given Object's. |
void |
debug(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5)
Shows DEBUG output for the given Object's. |
void |
dumpClasspath()
Outputs the system property for java.class.path. |
void |
dumpSystemProperties()
Outputs system properties for the operating system and the java version. |
void |
error(java.lang.Object object)
Shows ERROR output for the Object. |
void |
error(java.lang.Object object,
boolean bool)
Shows ERROR output for the given Object's. |
void |
error(java.lang.Object object,
double number)
Shows ERROR output for the given Object's. |
void |
error(java.lang.Object object,
int number)
Shows ERROR output for the given Object's. |
void |
error(java.lang.Object object,
java.lang.Object object2)
Shows ERROR output for the given Object's. |
void |
error(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3)
Shows ERROR output for the given Object's. |
void |
error(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4)
Shows ERROR output for the given Object's. |
void |
error(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5)
Shows ERROR output for the given Object's. |
void |
fatal(java.lang.Object object)
Shows FATAL output for the Object. |
void |
info(java.lang.Object object)
Shows INFO output for the Object. |
void |
info(java.lang.Object object,
boolean bool)
Shows INFO output for the given Object's. |
void |
info(java.lang.Object object,
double number)
Shows INFO output for the given Object's. |
void |
info(java.lang.Object object,
int number)
Shows INFO output for the given Object's. |
void |
info(java.lang.Object object,
java.lang.Object object2)
Shows INFO output for the given Object's. |
void |
info(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3)
Shows INFO output for the given Object's. |
void |
info(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4)
Shows INFO output for the given Object's. |
void |
info(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5)
Shows INFO output for the given Object's. |
boolean |
isDebugEnabled()
Use this method for computational demanding debug info. |
void |
setStackLength(int length)
Sets the number of StackTraceElements to be printed in DEBUG mode when calling debug(Throwable) . |
void |
warn(java.lang.Object object)
Shows WARN output for the Object. |
void |
warn(java.lang.Object object,
boolean bool)
Shows WARN output for the given Object's. |
void |
warn(java.lang.Object object,
double number)
Shows WARN output for the given Object's. |
void |
warn(java.lang.Object object,
int number)
Shows WARN output for the given Object's. |
void |
warn(java.lang.Object object,
java.lang.Object object2)
Shows WARN output for the given Object's. |
void |
warn(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3)
Shows WARN output for the given Object's. |
void |
warn(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4)
Shows WARN output for the given Object's. |
void |
warn(java.lang.Object obj,
java.lang.Object obj2,
java.lang.Object obj3,
java.lang.Object obj4,
java.lang.Object obj5)
Shows WARN output for the given Object's. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int DEFAULT_STACK_LENGTH
Constructor Detail |
---|
public TTLogger()
public TTLogger(java.lang.Object object)
Object
.
object
- Object from which the log messages originatepublic TTLogger(java.lang.Class classInst)
Method Detail |
---|
public static void configureLog4j(boolean console)
public static void configureLog4j(java.lang.String file)
public void dumpSystemProperties()
public void setStackLength(int length)
debug(Throwable)
.
The default value is DEFAULT_STACK_LENGTH.
length
- the new stack lengthDEFAULT_STACK_LENGTH
public void dumpClasspath()
public void debug(java.lang.Object object)
object
- Object to apply toString() too and outputpublic void debug(java.lang.Object object, java.lang.Object object2)
object
- Object to apply toString() too and outputobject2
- Object to apply toString() too and outputpublic void debug(java.lang.Object object, int number)
object
- Object to apply toString() too and outputnumber
- int to concatenate to objectpublic void debug(java.lang.Object object, double number)
object
- Object to apply toString() too and outputnumber
- int to concatenate to objectpublic void debug(java.lang.Object object, boolean bool)
object
- Object to apply toString() too and outputbool
- boolean to concatenate to objectpublic void debug(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputpublic void debug(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputpublic void debug(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputobj5
- Object to apply toString() too and outputpublic void error(java.lang.Object object)
object
- Object to apply toString() too and outputpublic void error(java.lang.Object object, int number)
object
- Object to apply toString() too and outputnumber
- int to concatenate to objectpublic void error(java.lang.Object object, double number)
object
- Object to apply toString() too and outputnumber
- double to concatenate to objectpublic void error(java.lang.Object object, boolean bool)
object
- Object to apply toString() too and outputbool
- boolean to concatenate to objectpublic void error(java.lang.Object object, java.lang.Object object2)
object
- Object to apply toString() too and outputobject2
- Object to apply toString() too and outputpublic void error(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputpublic void error(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputpublic void error(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputobj5
- Object to apply toString() too and outputpublic void fatal(java.lang.Object object)
object
- Object to apply toString() too and outputpublic void info(java.lang.Object object)
object
- Object to apply toString() too and outputpublic void info(java.lang.Object object, int number)
object
- Object to apply toString() too and outputnumber
- int to concatenate to objectpublic void info(java.lang.Object object, double number)
object
- Object to apply toString() too and outputnumber
- double to concatenate to objectpublic void info(java.lang.Object object, boolean bool)
object
- Object to apply toString() too and outputbool
- boolean to concatenate to objectpublic void info(java.lang.Object object, java.lang.Object object2)
object
- Object to apply toString() too and outputobject2
- Object to apply toString() too and outputpublic void info(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputpublic void info(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputpublic void info(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputobj5
- Object to apply toString() too and outputpublic void warn(java.lang.Object object)
object
- Object to apply toString() too and outputpublic void warn(java.lang.Object object, int number)
object
- Object to apply toString() too and outputnumber
- int to concatenate to objectpublic void warn(java.lang.Object object, boolean bool)
object
- Object to apply toString() too and outputbool
- boolean to concatenate to objectpublic void warn(java.lang.Object object, double number)
object
- Object to apply toString() too and outputnumber
- double to concatenate to objectpublic void warn(java.lang.Object object, java.lang.Object object2)
object
- Object to apply toString() too and outputobject2
- Object to apply toString() too and outputpublic void warn(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputpublic void warn(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputpublic void warn(java.lang.Object obj, java.lang.Object obj2, java.lang.Object obj3, java.lang.Object obj4, java.lang.Object obj5)
obj
- Object to apply toString() too and outputobj2
- Object to apply toString() too and outputobj3
- Object to apply toString() too and outputobj4
- Object to apply toString() too and outputobj5
- Object to apply toString() too and outputpublic boolean isDebugEnabled()
if (logger.isDebugEnabled()) { logger.info("The 1056389822th prime that is used is: ", calculatePrime(1056389822)); }
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |