public abstract class LogSupport
extends java.lang.Object
Log
to optionally be attached to
a subclass in order to output logging messages. This is simpler
than constantly checking whether we have a Log or not in each
usage throughout the classes which could use logging. Methods should
only be added to this as necessary. Performance considerations
can also be made later if deemed necessary. This is meant for internal
use and should NOT be relied upon by VelocityTools users.Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DEFAULT_PREFIX |
private org.apache.velocity.runtime.log.Log |
log |
Constructor and Description |
---|
LogSupport() |
Modifier and Type | Method and Description |
---|---|
protected void |
debug(java.lang.String msg) |
protected org.apache.velocity.runtime.log.Log |
getLog() |
protected boolean |
isDebugEnabled() |
protected boolean |
isTraceEnabled() |
protected boolean |
isWarnEnabled() |
protected java.lang.String |
logPrefix()
Override this to set a class-specific prefix
|
void |
setLog(org.apache.velocity.runtime.log.Log log) |
protected void |
trace(java.lang.String msg) |
protected void |
warn(java.lang.String msg) |
private static final java.lang.String DEFAULT_PREFIX
private org.apache.velocity.runtime.log.Log log
protected java.lang.String logPrefix()
public void setLog(org.apache.velocity.runtime.log.Log log)
protected org.apache.velocity.runtime.log.Log getLog()
protected boolean isWarnEnabled()
protected void warn(java.lang.String msg)
protected boolean isDebugEnabled()
protected void debug(java.lang.String msg)
protected boolean isTraceEnabled()
protected void trace(java.lang.String msg)
Copyright (c) 2003-2007 Apache Software Foundation