|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gnu.hylafax.logging.Log4jLogger
Implements a logging factory that uses log4j if it is available. If log4 is not available then output is logged to the console via System.out. It is possible to change the PrintStream / OutputStream of the console logger Future enhancements could include adding support for java.util.logging. However, there would have to be some mechanism for determining which method to use. The current implementation only uses the console logger if log4j is not available. log4j can be found at http://logging.apache.org
| Constructor Summary | |
protected |
Log4jLogger(java.lang.Class logClass)
Creates a logger using the class requesting logging. |
protected |
Log4jLogger(java.lang.String logClassName)
Creates a logger using the class name requesting logging. |
| Method Summary | |
void |
debug(java.lang.Object message)
Log a debug message. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log a debug message with an exception. |
void |
error(java.lang.Object message)
Log an error message. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log an error message with an exception. |
void |
fatal(java.lang.Object message)
Log a fatal message. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log a fatal message with an exception. |
void |
info(java.lang.Object message)
Log an info message. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log an info message with an exception. |
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isWarnEnabled()
|
void |
warn(java.lang.Object message)
Log a warn message. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log a warn message with an exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Log4jLogger(java.lang.Class logClass)
logClass - The class that is requesting logging.
protected Log4jLogger(java.lang.String logClassName)
throws java.lang.ClassNotFoundException
logClassName - The name of the class requesting logging.java.lang.ClassNotFoundException - | Method Detail |
public void debug(java.lang.Object message)
Loggerdebug in interface Loggergnu.hylafax.logging.Loggermessage -
public void debug(java.lang.Object message,
java.lang.Throwable t)
Loggerdebug in interface Loggergnu.hylafax.logging.Loggermessage - t - public void error(java.lang.Object message)
Loggererror in interface Loggergnu.hylafax.logging.Loggermessage -
public void error(java.lang.Object message,
java.lang.Throwable t)
Loggererror in interface Loggergnu.hylafax.logging.Loggermessage - t - public void fatal(java.lang.Object message)
Loggerfatal in interface Loggergnu.hylafax.logging.Loggermessage -
public void fatal(java.lang.Object message,
java.lang.Throwable t)
Loggerfatal in interface Loggergnu.hylafax.logging.Loggermessage - t - public void info(java.lang.Object message)
Loggerinfo in interface Loggergnu.hylafax.logging.Loggermessage -
public void info(java.lang.Object message,
java.lang.Throwable t)
Loggerinfo in interface Loggergnu.hylafax.logging.Loggermessage - t - public boolean isDebugEnabled()
isDebugEnabled in interface Loggergnu.hylafax.logging.Loggerpublic boolean isErrorEnabled()
isErrorEnabled in interface Loggergnu.hylafax.logging.Loggerpublic boolean isFatalEnabled()
isFatalEnabled in interface Loggergnu.hylafax.logging.Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggergnu.hylafax.logging.Loggerpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggergnu.hylafax.logging.Loggerpublic void warn(java.lang.Object message)
Loggerwarn in interface Loggergnu.hylafax.logging.Loggermessage -
public void warn(java.lang.Object message,
java.lang.Throwable t)
Loggerwarn in interface Loggergnu.hylafax.logging.Loggermessage - t -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||