public class LogChuteCommonsLog extends Object implements org.apache.commons.logging.Log
To use, specify this class in your commons-logging.properties:
org.apache.commons.logging.Log=org.apache.velocity.tools.generic.log.LogChuteCommonsLog
| Constructor and Description |
|---|
LogChuteCommonsLog() |
LogChuteCommonsLog(String category) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object message)
Passes messages to Velocity's LogChute at "DEBUG" level.
|
void |
debug(Object message,
Throwable t)
Passes messages to Velocity's LogChute at "DEBUG" level.
|
void |
error(Object message)
Passes messages to Velocity's LogChute at "ERROR" level.
|
void |
error(Object message,
Throwable t)
Passes messages to Velocity's LogChute at "ERROR" level.
|
void |
fatal(Object message)
Passes messages to Velocity's LogChute at "ERROR" level.
|
void |
fatal(Object message,
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(Object message)
Passes messages to Velocity's LogChute at "INFO" level.
|
void |
info(Object message,
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(Object message)
Passes messages to Velocity's LogChute at "DEBUG" level.
|
void |
trace(Object message,
Throwable t)
Passes messages to Velocity's LogChute at "DEBUG" level.
|
void |
warn(Object message)
Passes messages to Velocity's LogChute at "WARN" level.
|
void |
warn(Object message,
Throwable t)
Passes messages to Velocity's LogChute at "WARN" level.
|
public LogChuteCommonsLog()
public LogChuteCommonsLog(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(Object message)
trace in interface org.apache.commons.logging.Logpublic void trace(Object message, Throwable t)
trace in interface org.apache.commons.logging.Logpublic void debug(Object message)
debug in interface org.apache.commons.logging.Logpublic void debug(Object message, Throwable t)
debug in interface org.apache.commons.logging.Logpublic void info(Object message)
info in interface org.apache.commons.logging.Logpublic void info(Object message, Throwable t)
info in interface org.apache.commons.logging.Logpublic void warn(Object message)
warn in interface org.apache.commons.logging.Logpublic void warn(Object message, Throwable t)
warn in interface org.apache.commons.logging.Logpublic void error(Object message)
error in interface org.apache.commons.logging.Logpublic void error(Object message, Throwable t)
error in interface org.apache.commons.logging.Logpublic void fatal(Object message)
fatal in interface org.apache.commons.logging.Logpublic void fatal(Object message, 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.LogCopyright © 2002–2023 Apache Software Foundation. All rights reserved.