| java.lang.Object org.apache.velocity.runtime.log.Log org.apache.velocity.runtime.log.LogDisplayWrapper
LogDisplayWrapper | public class LogDisplayWrapper extends Log (Code) | | This is a wrapper around a log object, that can add a prefix to log messages
and also turn logging on and off dynamically. It is mainly used to control the
logging of VelociMacro generation messages but is actually generic enough code.
author: Henning P. Schmiedehausen version: $Id: LogDisplayWrapper.java 463298 2006-10-12 16:10:32Z henning $ |
Method Summary | |
public void | debug(boolean doLogging, Object message) Log a debug message. | public void | debug(boolean doLogging, Object message, Throwable t) Log a debug message and accompanying Throwable. | public void | error(boolean doLogging, Object message) Log an error message. | public void | error(boolean doLogging, Object message, Throwable t) Log an error message and accompanying Throwable. | protected LogChute | getLogChute() | public void | info(boolean doLogging, Object message) Log an info message. | public void | info(boolean doLogging, Object message, Throwable t) Log an info message and accompanying Throwable. | protected void | log(int level, Object message) | protected void | log(boolean doLogging, int level, Object message) | protected void | log(int level, Object message, Throwable t) | protected void | log(boolean doLogging, int level, Object message, Throwable t) | public void | trace(boolean doLogging, Object message) Log a trace message. | public void | trace(boolean doLogging, Object message, Throwable t) Log a trace message and accompanying Throwable. | public void | warn(boolean doLogging, Object message) Log a warning message. | public void | warn(boolean doLogging, Object message, Throwable t) Log a warning message and accompanying Throwable. |
LogDisplayWrapper | public LogDisplayWrapper(Log log, String prefix, boolean outputMessages)(Code) | | Create a new LogDisplayWrapper
Parameters: log - The Log object to wrap. Parameters: prefix - The prefix to record with all messages. Parameters: outputMessages - True when messages should actually get logged. |
debug | public void debug(boolean doLogging, Object message)(Code) | | Log a debug message.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - |
debug | public void debug(boolean doLogging, Object message, Throwable t)(Code) | | Log a debug message and accompanying Throwable.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - Parameters: t - |
error | public void error(boolean doLogging, Object message)(Code) | | Log an error message.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - |
error | public void error(boolean doLogging, Object message, Throwable t)(Code) | | Log an error message and accompanying Throwable.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - Parameters: t - |
getLogChute | protected LogChute getLogChute()(Code) | | make sure that we always use the right LogChute Object
|
info | public void info(boolean doLogging, Object message)(Code) | | Log an info message.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - |
info | public void info(boolean doLogging, Object message, Throwable t)(Code) | | Log an info message and accompanying Throwable.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - Parameters: t - |
log | protected void log(boolean doLogging, int level, Object message)(Code) | | |
trace | public void trace(boolean doLogging, Object message)(Code) | | Log a trace message.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - |
trace | public void trace(boolean doLogging, Object message, Throwable t)(Code) | | Log a trace message and accompanying Throwable.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - Parameters: t - |
warn | public void warn(boolean doLogging, Object message)(Code) | | Log a warning message.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - |
warn | public void warn(boolean doLogging, Object message, Throwable t)(Code) | | Log a warning message and accompanying Throwable.
Parameters: doLogging - Log only if this parameter is true. Parameters: message - Parameters: t - |
|
|