org.apache.velocity.runtime.log
Class VelocityFormatter
java.lang.Object
org.apache.log.format.PatternFormatter
org.apache.velocity.runtime.log.VelocityFormatter
- All Implemented Interfaces:
- Formatter
public class VelocityFormatter
- extends PatternFormatter
Method Summary |
protected String |
getTime(long time,
String format)
Utility method to format time. |
Methods inherited from class org.apache.log.format.PatternFormatter |
format, formatPatternRun, getCategory, getContextMap, getMessage, getPriority, getRTime, getStackTrace, getThread, getTypeIdFor, parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityFormatter
public VelocityFormatter(String format)
- Parameters:
format
-
getTime
protected String getTime(long time,
String format)
- Utility method to format time.
- Overrides:
getTime
in class PatternFormatter
- Parameters:
time
- the timeformat
- ancilliary format parameter - allowed to be null
- Returns:
- the formatted string
Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.