|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.support.log.LogAdapterHolder
public final class LogAdapterHolder
A LogAdapterHolder instance is used by a
FileSystem to hold a reference to the current
LogAdapter. All objects that want a reference to the current LogAdapter hold on to this reference.
This holder can also be used as a LogAdapter. It forwards all LogAdapter calls to the LogAdapter that it holds.
LogAdapter| Constructor Summary | |
|---|---|
LogAdapterHolder()
Default constructor. |
|
LogAdapterHolder(LogAdapter la)
Create the object and set a LogAdapter. |
|
| Method Summary | |
|---|---|
LogAdapter |
getLogAdapter()
Get the current LogAdapter. |
boolean |
isDebugEnabled()
Will messages with the level DEBUG be logged? |
boolean |
isErrorEnabled()
Will messages with the level ERROR be logged? |
boolean |
isFinerEnabled()
Will messages with the level FINER be logged? |
boolean |
isInfoEnabled()
Will messages with the level INFO be logged? |
boolean |
isSevereEnabled()
Will messages with the level SEVERE be logged? |
boolean |
isTraceEnabled()
Will messages with the level TRACE be logged? |
boolean |
isWarningEnabled()
Will messages with the level WARNING be logged? |
void |
logDebug(Object o)
Log the result of o.toString() with the level DEBUG. |
void |
logDebug(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level DEBUG. |
void |
logDebug(Throwable t)
Log the exception's message and stack trace with the level DEBUG. |
void |
logError(Object o)
Log the result of o.toString() with the level ERROR. |
void |
logError(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level ERROR. |
void |
logError(Throwable t)
Log the exception's message and stack trace with the level ERROR. |
void |
logFiner(Object o)
Log the result of o.toString() with the level FINER. |
void |
logFiner(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level FINER. |
void |
logFiner(Throwable t)
Log the exception's message and stack trace with the level FINER. |
void |
logInfo(Object o)
Log the result of o.toString() with the level INFO. |
void |
logInfo(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level INFO. |
void |
logInfo(Throwable t)
Log the exception's message and stack trace with the level INFO. |
void |
logSevere(Object o)
Log the result of o.toString() with the level SEVERE. |
void |
logSevere(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level SEVERE. |
void |
logSevere(Throwable t)
Log the exception's message and stack trace with the level SEVERE
. |
void |
logTrace(Object o)
Log the result of o.toString() with the level TRACE. |
void |
logTrace(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level TRACE. |
void |
logTrace(Throwable t)
Log the exception's message and stack trace with the level TRACE. |
void |
logWarning(Object o)
Log the result of o.toString() with the level WARNING. |
void |
logWarning(Object o,
Throwable t)
Log the result of o.toString() and the exception's stack trace to
the level WARNING. |
void |
logWarning(Throwable t)
Log the exception's message and stack trace with the level WARNING. |
void |
setLevel(Level l)
Set the log level. |
void |
setLogAdapter(LogAdapter la)
Set a new LogAdapter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogAdapterHolder()
LogAdapter by calling setLogAdapter after creating the object.
public LogAdapterHolder(LogAdapter la)
throws NullPointerException
LogAdapter.
la - The log adapter
NullPointerException - If la is null.| Method Detail |
|---|
public LogAdapter getLogAdapter()
LogAdapter.
public void setLogAdapter(LogAdapter la)
throws NullPointerException
LogAdapter.
la - The new log adapter.
NullPointerException - If la is null.public void logTrace(Object o)
LogAdaptero.toString() with the level TRACE.
logTrace in interface LogAdaptero - The object to log.public void logTrace(Throwable t)
LogAdapterTRACE.
logTrace in interface LogAdaptert - The exception to log.
public void logTrace(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level TRACE.
logTrace in interface LogAdaptero - The object to log.t - The exception to log.public void logFiner(Object o)
LogAdaptero.toString() with the level FINER.
logFiner in interface LogAdaptero - The object to log.public void logFiner(Throwable t)
LogAdapterFINER.
logFiner in interface LogAdaptert - The exception to log.
public void logFiner(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level FINER.
logFiner in interface LogAdaptero - The object to log.t - The exception to log.public void logDebug(Object o)
LogAdaptero.toString() with the level DEBUG.
logDebug in interface LogAdaptero - The object to log.public void logDebug(Throwable t)
LogAdapterDEBUG.
logDebug in interface LogAdaptert - The exception to log.
public void logDebug(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level DEBUG.
logDebug in interface LogAdaptero - The object to log.t - The exception to log.public void logInfo(Object o)
LogAdaptero.toString() with the level INFO.
logInfo in interface LogAdaptero - The object to log.public void logInfo(Throwable t)
LogAdapterINFO.
logInfo in interface LogAdaptert - The exception to log.
public void logInfo(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level INFO.
logInfo in interface LogAdaptero - The object to log.t - The exception to log.public void logWarning(Object o)
LogAdaptero.toString() with the level WARNING.
logWarning in interface LogAdaptero - The object to log.public void logWarning(Throwable t)
LogAdapterWARNING.
logWarning in interface LogAdaptert - The exception to log.
public void logWarning(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level WARNING.
logWarning in interface LogAdaptero - The object to log.t - The exception to log.public void logError(Object o)
LogAdaptero.toString() with the level ERROR.
logError in interface LogAdaptero - The object to log.public void logError(Throwable t)
LogAdapterERROR.
logError in interface LogAdaptert - The exception to log.
public void logError(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level ERROR.
logError in interface LogAdaptero - The object to log.t - The exception to log.public void logSevere(Object o)
LogAdaptero.toString() with the level SEVERE.
logSevere in interface LogAdaptero - The object to log.public void logSevere(Throwable t)
LogAdapterSEVERE
.
logSevere in interface LogAdaptert - The exception to log.
public void logSevere(Object o,
Throwable t)
LogAdaptero.toString() and the exception's stack trace to
the level SEVERE.
logSevere in interface LogAdaptero - The object to log.t - The exception to log.public void setLevel(Level l)
LogAdapterjava.util.logging.Level class to
define the level. The Level value is translated to the
corresponding logging level in the logging system used by the adapter
implementation. See the documentation for that adapter for how the
mapping is done.
setLevel in interface LogAdapterl - The level.public boolean isTraceEnabled()
LogAdapterTRACE be logged?
isTraceEnabled in interface LogAdaptertrue if messages with the level TRACE will be
logged, false otherwise.public boolean isFinerEnabled()
LogAdapterFINER be logged?
isFinerEnabled in interface LogAdaptertrue if messages with the level FINER will be
logged, false otherwise.public boolean isDebugEnabled()
LogAdapterDEBUG be logged?
isDebugEnabled in interface LogAdaptertrue if messages with the level DEBUG will be
logged, false otherwise.public boolean isInfoEnabled()
LogAdapterINFO be logged?
isInfoEnabled in interface LogAdaptertrue if messages with the level INFO will be
logged, false otherwise.public boolean isWarningEnabled()
LogAdapterWARNING be logged?
isWarningEnabled in interface LogAdaptertrue if messages with the level WARNING will be
logged, false otherwise.public boolean isErrorEnabled()
LogAdapterERROR be logged?
isErrorEnabled in interface LogAdaptertrue if messages with the level ERROR will be
logged, false otherwise.public boolean isSevereEnabled()
LogAdapterSEVERE be logged?
isSevereEnabled in interface LogAdaptertrue if messages with the level SEVERE will be
logged, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||