Class Log4jKettleLayout

java.lang.Object
org.apache.logging.log4j.core.layout.AbstractLayout<String>
org.apache.logging.log4j.core.layout.AbstractStringLayout
org.pentaho.di.core.logging.log4j.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 final 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 Summary

    Constructors
    Constructor
    Description
    Log4jKettleLayout(Charset charset, boolean timeAdded)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    encode(org.apache.logging.log4j.core.LogEvent source, org.apache.logging.log4j.core.layout.ByteBufferDestination destination)
     
    format(org.apache.logging.log4j.core.LogEvent event)
     
     
     
    byte[]
     
    byte[]
     
    boolean
     
    boolean
     
    void
    setTimeAdded(boolean addTime)
     
    toSerializable(org.apache.logging.log4j.core.LogEvent event)
     

    Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout

    getBytes, getCharset, getFooterSerializer, getHeaderSerializer, getStringBuilder, getStringBuilderEncoder, requiresLocation, serializeToBytes, serializeToString, toByteArray, trimToMaxSize

    Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout

    getConfiguration, markEvent

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • Log4jKettleLayout

      public Log4jKettleLayout(Charset charset, boolean timeAdded)
  • Method Details

    • format

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

      public boolean ignoresThrowable()
      Specified by:
      ignoresThrowable in interface Log4jLayout
    • activateOptions

      public void activateOptions()
      Specified by:
      activateOptions in interface Log4jLayout
    • isTimeAdded

      public boolean isTimeAdded()
      Specified by:
      isTimeAdded 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>