Class Log4jKettleLayout

  • All Implemented Interfaces:
    org.apache.logging.log4j.core.impl.LocationAware, org.apache.logging.log4j.core.Layout<String>, org.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>, org.apache.logging.log4j.core.StringLayout, Log4jLayout

    public class Log4jKettleLayout
    extends org.apache.logging.log4j.core.layout.AbstractStringLayout
    implements Log4jLayout
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout

        org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder<B extends org.apache.logging.log4j.core.layout.AbstractStringLayout.Builder<B>>, org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer, org.apache.logging.log4j.core.layout.AbstractStringLayout.Serializer2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String ERROR_STRING  
      • Fields inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout

        DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
      • Fields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout

        configuration, eventCount, footer, header, LOGGER
      • Fields inherited from interface org.apache.logging.log4j.core.Layout

        ELEMENT_TYPE
    • Constructor Detail

      • Log4jKettleLayout

        public Log4jKettleLayout​(Charset charset,
                                 boolean timeAdded)
    • Method Detail

      • format

        public String format​(org.apache.logging.log4j.core.LogEvent event)
        Specified by:
        format in interface Log4jLayout
      • setTimeAdded

        public void setTimeAdded​(boolean addTime)
        Specified by:
        setTimeAdded in interface Log4jLayout
      • getFooter

        public byte[] getFooter()
        Specified by:
        getFooter in interface org.apache.logging.log4j.core.Layout<String>
        Overrides:
        getFooter in class org.apache.logging.log4j.core.layout.AbstractStringLayout
      • getHeader

        public byte[] getHeader()
        Specified by:
        getHeader in interface org.apache.logging.log4j.core.Layout<String>
        Overrides:
        getHeader in class org.apache.logging.log4j.core.layout.AbstractStringLayout
      • toSerializable

        public String toSerializable​(org.apache.logging.log4j.core.LogEvent event)
        Specified by:
        toSerializable in interface org.apache.logging.log4j.core.Layout<String>
      • getContentType

        public String getContentType()
        Specified by:
        getContentType in interface org.apache.logging.log4j.core.Layout<String>
        Overrides:
        getContentType in class org.apache.logging.log4j.core.layout.AbstractStringLayout
      • getContentFormat

        public Map<String,​String> getContentFormat()
        Specified by:
        getContentFormat in interface org.apache.logging.log4j.core.Layout<String>
        Overrides:
        getContentFormat in class org.apache.logging.log4j.core.layout.AbstractLayout<String>
      • encode

        public void encode​(org.apache.logging.log4j.core.LogEvent source,
                           org.apache.logging.log4j.core.layout.ByteBufferDestination destination)
        Specified by:
        encode in interface org.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>
        Overrides:
        encode in class org.apache.logging.log4j.core.layout.AbstractLayout<String>