|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.velocity.tools.generic.log.LogChuteCommonsLog
public class LogChuteCommonsLog
Redirects commons-logging messages to Velocity's configured LogChute.
To use, specify this class in your commons-logging.properties:
org.apache.commons.logging.Log=org.apache.velocity.tools.generic.log.LogChuteCommonsLog
| Field Summary | |
|---|---|
private java.lang.String |
category
|
private static org.apache.velocity.runtime.log.Log |
target
|
| Constructor Summary | |
|---|---|
LogChuteCommonsLog()
|
|
LogChuteCommonsLog(java.lang.String category)
|
|
| Method Summary | |
|---|---|
void |
debug(java.lang.Object message)
Passes messages to Velocity's LogChute at "DEBUG" level. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Passes messages to Velocity's LogChute at "DEBUG" level. |
void |
error(java.lang.Object message)
Passes messages to Velocity's LogChute at "ERROR" level. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Passes messages to Velocity's LogChute at "ERROR" level. |
void |
fatal(java.lang.Object message)
Passes messages to Velocity's LogChute at "ERROR" level. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Passes messages to Velocity's LogChute at "ERROR" level. |
protected org.apache.velocity.runtime.log.Log |
getTarget()
|
protected static org.apache.velocity.runtime.log.Log |
getVelocityLog()
Allow subclasses to statically access the static target. |
void |
info(java.lang.Object message)
Passes messages to Velocity's LogChute at "INFO" level. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Passes messages to Velocity's LogChute at "INFO" level. |
boolean |
isDebugEnabled()
Returns true if Velocity's LogChute returns true for isDebugEnabled(). |
boolean |
isErrorEnabled()
Returns true if Velocity's LogChute returns true for isErrorEnabled(). |
boolean |
isFatalEnabled()
Returns true if isErrorEnabled() returns true, since Velocity's LogChute doesn't support this level. |
boolean |
isInfoEnabled()
Returns true if Velocity's LogChute returns true for isInfoEnabled(). |
boolean |
isTraceEnabled()
Returns true if Velocity's LogChute returns true for isTraceEnabled(). |
boolean |
isWarnEnabled()
Returns true if Velocity's LogChute returns true for isWarnEnabled(). |
static void |
setVelocityLog(org.apache.velocity.runtime.log.Log target)
Set a VelocityEngine to handle all the log messages. |
void |
trace(java.lang.Object message)
Passes messages to Velocity's LogChute at "DEBUG" level. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Passes messages to Velocity's LogChute at "DEBUG" level. |
void |
warn(java.lang.Object message)
Passes messages to Velocity's LogChute at "WARN" level. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Passes messages to Velocity's LogChute at "WARN" level. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.apache.velocity.runtime.log.Log target
private java.lang.String category
| Constructor Detail |
|---|
public LogChuteCommonsLog()
public LogChuteCommonsLog(java.lang.String category)
| Method Detail |
|---|
protected static org.apache.velocity.runtime.log.Log getVelocityLog()
public static void setVelocityLog(org.apache.velocity.runtime.log.Log target)
protected org.apache.velocity.runtime.log.Log getTarget()
public void trace(java.lang.Object message)
trace in interface org.apache.commons.logging.Log
public void trace(java.lang.Object message,
java.lang.Throwable t)
trace in interface org.apache.commons.logging.Logpublic void debug(java.lang.Object message)
debug in interface org.apache.commons.logging.Log
public void debug(java.lang.Object message,
java.lang.Throwable t)
debug in interface org.apache.commons.logging.Logpublic void info(java.lang.Object message)
info in interface org.apache.commons.logging.Log
public void info(java.lang.Object message,
java.lang.Throwable t)
info in interface org.apache.commons.logging.Logpublic void warn(java.lang.Object message)
warn in interface org.apache.commons.logging.Log
public void warn(java.lang.Object message,
java.lang.Throwable t)
warn in interface org.apache.commons.logging.Logpublic void error(java.lang.Object message)
error in interface org.apache.commons.logging.Log
public void error(java.lang.Object message,
java.lang.Throwable t)
error in interface org.apache.commons.logging.Logpublic void fatal(java.lang.Object message)
fatal in interface org.apache.commons.logging.Log
public void fatal(java.lang.Object message,
java.lang.Throwable t)
fatal in interface org.apache.commons.logging.Logpublic boolean isTraceEnabled()
isTraceEnabled in interface org.apache.commons.logging.Logpublic boolean isDebugEnabled()
isDebugEnabled in interface org.apache.commons.logging.Logpublic boolean isInfoEnabled()
isInfoEnabled in interface org.apache.commons.logging.Logpublic boolean isWarnEnabled()
isWarnEnabled in interface org.apache.commons.logging.Logpublic boolean isErrorEnabled()
isErrorEnabled in interface org.apache.commons.logging.Logpublic boolean isFatalEnabled()
isFatalEnabled in interface org.apache.commons.logging.Log
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||