Class Layout

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String LINE_SEP  
      static int LINE_SEP_LEN  
    • Constructor Summary

      Constructors 
      Constructor Description
      Layout()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String format​(LoggingEvent event)
      Implement this method to create your own layout format.
      java.lang.String getContentType()
      Returns the content type output by this layout.
      java.lang.String getFooter()
      Returns the footer for the layout format.
      java.lang.String getHeader()
      Returns the header for the layout format.
      abstract boolean ignoresThrowable()
      If the layout handles the throwable object contained within LoggingEvent, then the layout should return false.
      • Methods inherited from class java.lang.Object

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

      • LINE_SEP

        public static final java.lang.String LINE_SEP
      • LINE_SEP_LEN

        public static final int LINE_SEP_LEN
    • Constructor Detail

      • Layout

        public Layout()
    • Method Detail

      • format

        public abstract java.lang.String format​(LoggingEvent event)
        Implement this method to create your own layout format.
      • getContentType

        public java.lang.String getContentType()
        Returns the content type output by this layout. The base class returns "text/plain".
      • getHeader

        public java.lang.String getHeader()
        Returns the header for the layout format. The base class returns null.
      • getFooter

        public java.lang.String getFooter()
        Returns the footer for the layout format. The base class returns null.
      • ignoresThrowable

        public abstract boolean ignoresThrowable()
        If the layout handles the throwable object contained within LoggingEvent, then the layout should return false. Otherwise, if the layout ignores throwable object, then the layout should return true. If ignoresThrowable is true, the appender is responsible for rendering the throwable.

        The SimpleLayout, TTCCLayout, PatternLayout all return true. The XMLLayout returns false.

        Since:
        0.8.4