|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.toronto.cs.util.Logger
public class Logger
This class allows to create and maintain logs for java programs.
Field Summary | |
---|---|
protected org.apache.log4j.Category |
log
Category assigned to this particular logger. |
static java.lang.String |
LOG_FILENAME
|
Constructor Summary | |
---|---|
Logger(java.lang.String catname)
Make a logger corresponding to the specified category. |
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Request to log a debugging message. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Request to log a debugging message with the stack trace of the Throwable t passed as parameter. |
void |
debug(java.lang.Throwable t)
Log with DEBUG priority the stack trace of the Throwable t passed as parameter. |
void |
error(java.lang.Object message)
Request to log an error message. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Request to log an error message with the stack trace of the Throwable t passed as parameter. |
void |
error(java.lang.Throwable t)
Log with ERROR priority the stack trace of the Throwable t passed as parameter. |
void |
fatal(java.lang.Object message)
Request to log a fatal error message. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Request to log a fatal error message with the stack trace of the Throwable t passed as parameter. |
void |
fatal(java.lang.Throwable t)
Log with FATAL priority the stack trace of the Throwable t passed as parameter. |
void |
info(java.lang.Object message)
Request to log some information. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Request to log an informative message with the stack trace of the Throwable t passed as parameter. |
void |
info(java.lang.Throwable t)
Log with INFO priority the stack trace of the Throwable t passed as parameter. |
void |
warn(java.lang.Object message)
Request to log a warning message. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Request to log a warning message with the stack trace of the Throwable t passed as parameter. |
void |
warn(java.lang.Throwable t)
Log with WARN priority the stack trace of the Throwable t passed as parameter. |
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 LOG_FILENAME
protected org.apache.log4j.Category log
Constructor Detail |
---|
public Logger(java.lang.String catname)
catname
- the name of the logging category (usually just
the class name).Method Detail |
---|
public void debug(java.lang.Object message)
message
- the debugging message to log.public void debug(java.lang.Object message, java.lang.Throwable t)
message
- the debugging message to log.t
- the exception to log, including its stack trace.public void debug(java.lang.Throwable t)
t
- the exception to log, including its stack trace.public void info(java.lang.Object message)
message
- the information (message) to log.public void info(java.lang.Object message, java.lang.Throwable t)
message
- the information (message) to log.t
- the exception to log, including its stack trace.public void info(java.lang.Throwable t)
t
- the exception to log, including its stack trace.public void warn(java.lang.Object message)
message
- the warning message to log.public void warn(java.lang.Object message, java.lang.Throwable t)
message
- the warning message to log.t
- the exception to log, including its stack trace.public void warn(java.lang.Throwable t)
t
- the exception to log, including its stack trace.public void error(java.lang.Object message)
message
- the error message to log.public void error(java.lang.Object message, java.lang.Throwable t)
message
- the error message to log.t
- the exception to log, including its stack trace.public void error(java.lang.Throwable t)
t
- the exception to log, including its stack trace.public void fatal(java.lang.Object message)
message
- the fatal error message to log.public void fatal(java.lang.Object message, java.lang.Throwable t)
message
- the fatal error message to log.t
- the exception to log, including its stack trace.public void fatal(java.lang.Throwable t)
t
- the exception to log, including its stack trace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |