Class PatternConverter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean leftAlign  
      (package private) int max  
      (package private) int min  
      PatternConverter next  
      (package private) static java.lang.String[] SPACES  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.String convert​(LoggingEvent event)
      Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
      void format​(java.lang.StringBuffer sbuf, LoggingEvent e)
      A template method for formatting in a converter specific way.
      void spacePad​(java.lang.StringBuffer sbuf, int length)
      Fast space padding method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • min

        int min
      • max

        int max
      • leftAlign

        boolean leftAlign
      • SPACES

        static java.lang.String[] SPACES
    • Constructor Detail

      • PatternConverter

        protected PatternConverter()
    • Method Detail

      • convert

        protected abstract java.lang.String convert​(LoggingEvent event)
        Derived pattern converters must override this method in order to convert conversion specifiers in the correct way.
      • format

        public void format​(java.lang.StringBuffer sbuf,
                           LoggingEvent e)
        A template method for formatting in a converter specific way.
      • spacePad

        public void spacePad​(java.lang.StringBuffer sbuf,
                             int length)
        Fast space padding method.