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
FieldsFields inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZEFields inherited from class org.apache.logging.log4j.core.layout.AbstractLayout
configuration, eventCount, footer, header, LOGGERFields inherited from interface org.apache.logging.log4j.core.Layout
ELEMENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidencode(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[]booleanbooleanvoidsetTimeAdded(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, trimToMaxSizeMethods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout
getConfiguration, markEvent
-
Field Details
-
ERROR_STRING
- See Also:
-
-
Constructor Details
-
Log4jKettleLayout
-
-
Method Details
-
format
- Specified by:
formatin interfaceLog4jLayout
-
ignoresThrowable
public boolean ignoresThrowable()- Specified by:
ignoresThrowablein interfaceLog4jLayout
-
activateOptions
public void activateOptions()- Specified by:
activateOptionsin interfaceLog4jLayout
-
isTimeAdded
public boolean isTimeAdded()- Specified by:
isTimeAddedin interfaceLog4jLayout
-
setTimeAdded
public void setTimeAdded(boolean addTime) - Specified by:
setTimeAddedin interfaceLog4jLayout
-
getHeader
public byte[] getHeader()- Specified by:
getHeaderin interfaceorg.apache.logging.log4j.core.Layout<String>- Overrides:
getHeaderin classorg.apache.logging.log4j.core.layout.AbstractStringLayout
-
toSerializable
- Specified by:
toSerializablein interfaceorg.apache.logging.log4j.core.Layout<String>
-
getContentType
- Specified by:
getContentTypein interfaceorg.apache.logging.log4j.core.Layout<String>- Overrides:
getContentTypein classorg.apache.logging.log4j.core.layout.AbstractStringLayout
-
getContentFormat
-
encode
public void encode(org.apache.logging.log4j.core.LogEvent source, org.apache.logging.log4j.core.layout.ByteBufferDestination destination) - Specified by:
encodein interfaceorg.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>- Overrides:
encodein classorg.apache.logging.log4j.core.layout.AbstractLayout<String>
-