|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.monitor.Log4jMonitor
public final class Log4jMonitor
Adapter from Apache Log4j to the domingo monitor interface.
Use an instance of this class as argument to DNotesFactory.getInstance(DNotesMonitor theMonitor).
If Log4j should be used for logging, the log4j.jar file must be available in the classpath. Log4h can be downloaded at .
Field Summary |
---|
Fields inherited from interface de.bea.domingo.DNotesMonitor |
---|
DEBUG, DEFAULT_LEVEL, ERROR, FATAL, INFO, NONE, WARN |
Constructor Summary | |
---|---|
Log4jMonitor()
Constructor. |
|
Log4jMonitor(org.apache.log4j.Logger log)
Constructor. |
Method Summary | |
---|---|
void |
debug(java.lang.String message)
debug output. |
void |
debug(java.lang.String message,
java.lang.Throwable throwable)
debug output. |
void |
error(java.lang.String message)
error output. |
void |
error(java.lang.String message,
java.lang.Throwable throwable)
error output. |
void |
fatalError(java.lang.String message)
fatal error output. |
void |
fatalError(java.lang.String message,
java.lang.Throwable throwable)
fatal error output. |
org.apache.log4j.Logger |
getLogger()
Returns the current Log4j log. |
void |
info(java.lang.String message)
info output. |
void |
info(java.lang.String message,
java.lang.Throwable throwable)
info output. |
boolean |
isDebugEnabled()
Checks if debug output is enabled or not. |
boolean |
isErrorEnabled()
Checks if error output is enabled or not. |
boolean |
isFatalErrorEnabled()
Checks if fatal error output is enabled or not. |
boolean |
isInfoEnabled()
Checks if info output is enabled or not. |
boolean |
isWarnEnabled()
Checks if warn output is enabled or not. |
void |
setLogger(org.apache.log4j.Logger log)
Sets a new Log4j log. |
void |
warn(java.lang.String message)
warn output. |
void |
warn(java.lang.String message,
java.lang.Throwable throwable)
warn output. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log4jMonitor()
Creates a monitor with a default Logj log.
public Log4jMonitor(org.apache.log4j.Logger log)
log
- a Log4j log instanceMethod Detail |
---|
public org.apache.log4j.Logger getLogger()
public void setLogger(org.apache.log4j.Logger log)
log
- the new Log4j logpublic void debug(java.lang.String message, java.lang.Throwable throwable)
debug
in interface DNotesMonitor
message
- the messagethrowable
- the throwableDNotesMonitor.debug(java.lang.String, java.lang.Throwable)
public void debug(java.lang.String message)
debug
in interface DNotesMonitor
message
- the messageDNotesMonitor.debug(java.lang.String)
public void info(java.lang.String message, java.lang.Throwable throwable)
info
in interface DNotesMonitor
message
- the messagethrowable
- the throwableDNotesMonitor.info(java.lang.String, java.lang.Throwable)
public void info(java.lang.String message)
info
in interface DNotesMonitor
message
- the messageDNotesMonitor.info(java.lang.String)
public void warn(java.lang.String message, java.lang.Throwable throwable)
warn
in interface DNotesMonitor
message
- the messagethrowable
- the throwableDNotesMonitor.warn(java.lang.String, java.lang.Throwable)
public void warn(java.lang.String message)
warn
in interface DNotesMonitor
message
- the messageDNotesMonitor.warn(java.lang.String)
public void error(java.lang.String message, java.lang.Throwable throwable)
error
in interface DNotesMonitor
message
- the messagethrowable
- the throwableDNotesMonitor.error(java.lang.String, java.lang.Throwable)
public void error(java.lang.String message)
error
in interface DNotesMonitor
message
- the messageDNotesMonitor.error(java.lang.String)
public void fatalError(java.lang.String message, java.lang.Throwable throwable)
fatalError
in interface DNotesMonitor
message
- the messagethrowable
- the throwableDNotesMonitor.fatalError(java.lang.String, java.lang.Throwable)
public void fatalError(java.lang.String message)
fatalError
in interface DNotesMonitor
message
- the messageDNotesMonitor.fatalError(java.lang.String)
public boolean isDebugEnabled()
isDebugEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isDebugEnabled()
public boolean isInfoEnabled()
isInfoEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isInfoEnabled()
public boolean isWarnEnabled()
isWarnEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isWarnEnabled()
public boolean isErrorEnabled()
isErrorEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isErrorEnabled()
public boolean isFatalErrorEnabled()
isFatalErrorEnabled
in interface DNotesMonitor
true
if enabled, else false
DNotesMonitor.isFatalErrorEnabled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |