Class VelocityFormatter

  • All Implemented Interfaces:
    org.apache.log.format.Formatter

    public class VelocityFormatter
    extends org.apache.log.format.PatternFormatter
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.log.format.PatternFormatter

        org.apache.log.format.PatternFormatter.PatternRun
    • Field Summary

      • Fields inherited from class org.apache.log.format.PatternFormatter

        MAX_TYPE
    • Constructor Summary

      Constructors 
      Constructor Description
      VelocityFormatter​(java.lang.String format)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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

        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
    • Constructor Detail

      • VelocityFormatter

        public VelocityFormatter​(java.lang.String format)
        Parameters:
        format -
    • 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