org.apache.velocity.tools.config
Class LogSupport
java.lang.Object
org.apache.velocity.tools.config.LogSupport
- Direct Known Subclasses:
- ConfigurationCleaner
public abstract class LogSupport
- extends Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogSupport
public LogSupport()
logPrefix
protected String logPrefix()
- Override this to set a class-specific prefix
setLog
public void setLog(Log log)
getLog
protected Log getLog()
isWarnEnabled
protected boolean isWarnEnabled()
warn
protected void warn(String msg)
isDebugEnabled
protected boolean isDebugEnabled()
debug
protected void debug(String msg)
isTraceEnabled
protected boolean isTraceEnabled()
trace
protected void trace(String msg)
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.