Package org.apache.velocity.tools.config
Class LogSupport
java.lang.Object
org.apache.velocity.tools.config.LogSupport
- Direct Known Subclasses:
ConfigurationCleaner
This allows for a
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.- Version:
- $Id: LogSupport.java 511959 2007-02-26 19:24:39Z nbubna $
- Author:
- Nathan Bubna
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private org.apache.velocity.runtime.log.Log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected org.apache.velocity.runtime.log.Log
getLog()
protected boolean
protected boolean
protected boolean
protected String
Override this to set a class-specific prefixvoid
setLog
(org.apache.velocity.runtime.log.Log log) protected void
protected void
-
Field Details
-
DEFAULT_PREFIX
- See Also:
-
log
private org.apache.velocity.runtime.log.Log log
-
-
Constructor Details
-
LogSupport
public LogSupport()
-
-
Method Details
-
logPrefix
Override this to set a class-specific prefix -
setLog
public void setLog(org.apache.velocity.runtime.log.Log log) -
getLog
protected org.apache.velocity.runtime.log.Log getLog() -
isWarnEnabled
protected boolean isWarnEnabled() -
warn
-
isDebugEnabled
protected boolean isDebugEnabled() -
debug
-
isTraceEnabled
protected boolean isTraceEnabled() -
trace
-