public class LogChuteCommonsLog
extends java.lang.Object
To use, specify this class in your commons-logging.properties:
org.apache.commons.logging.Log=org.apache.velocity.tools.generic.log.LogChuteCommonsLog
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
category |
private static org.apache.velocity.runtime.log.Log |
target |
Constructor and Description |
---|
LogChuteCommonsLog() |
LogChuteCommonsLog(java.lang.String category) |
Modifier and Type | Method and Description |
---|---|
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.
|
private static org.apache.velocity.runtime.log.Log target
private java.lang.String category
public LogChuteCommonsLog()
public LogChuteCommonsLog(java.lang.String category)
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)
public void trace(java.lang.Object message, java.lang.Throwable t)
public void debug(java.lang.Object message)
public void debug(java.lang.Object message, java.lang.Throwable t)
public void info(java.lang.Object message)
public void info(java.lang.Object message, java.lang.Throwable t)
public void warn(java.lang.Object message)
public void warn(java.lang.Object message, java.lang.Throwable t)
public void error(java.lang.Object message)
public void error(java.lang.Object message, java.lang.Throwable t)
public void fatal(java.lang.Object message)
public void fatal(java.lang.Object message, java.lang.Throwable t)
public boolean isTraceEnabled()
public boolean isDebugEnabled()
public boolean isInfoEnabled()
public boolean isWarnEnabled()
public boolean isErrorEnabled()
public boolean isFatalEnabled()
Copyright (c) 2003-2007 Apache Software Foundation