org.apache.velocity.runtime.log
Class VelocityFormatter

java.lang.Object
  |
  +--org.apache.log.format.PatternFormatter
        |
        +--org.apache.velocity.runtime.log.VelocityFormatter
All Implemented Interfaces:
org.apache.log.Formatter

public class VelocityFormatter
extends org.apache.log.format.PatternFormatter


Inner classes inherited from class org.apache.log.format.PatternFormatter
org.apache.log.format.PatternFormatter.PatternRun
 
Fields inherited from class org.apache.log.format.PatternFormatter
m_formatSpecification, SPACE_1, SPACE_16, SPACE_2, SPACE_4, SPACE_8, TYPE_CATEGORY, TYPE_CATEGORY_STR, TYPE_CONTEXT, TYPE_CONTEXT_STR, TYPE_MESSAGE, TYPE_MESSAGE_STR, TYPE_PRIORITY, TYPE_PRIORITY_STR, TYPE_TEXT, TYPE_THROWABLE, TYPE_THROWABLE_STR, TYPE_TIME, TYPE_TIME_STR
 
Constructor Summary
VelocityFormatter()
           
 
Method Summary
protected  java.lang.String getTime(long time, java.lang.String format)
          Utility method to format time.
 
Methods inherited from class org.apache.log.format.PatternFormatter
addPatternRun, addTextRun, append, appendWhiteSpace, fix, format, getCategory, getContext, getMessage, getPriority, getStackTrace, getTypeIdFor, parse, setFormat
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

VelocityFormatter

public VelocityFormatter()
Method Detail

getTime

protected java.lang.String getTime(long time,
                                   java.lang.String format)
Utility method to format time.
Overrides:
getTime in class org.apache.log.format.PatternFormatter
Parameters:
time - the time
format - ancilliary format parameter - allowed to be null
Returns:
the formatted string


Copyright © 2001 Apache Software Foundation. All Rights Reserved.