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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Field Details
-
ERROR_STRING
- See Also:
-
-
Constructor Details
-
Log4jKettleLayout
-
-
Method Details
-
format
- Specified by:
format
in interfaceLog4jLayout
-
ignoresThrowable
public boolean ignoresThrowable()- Specified by:
ignoresThrowable
in interfaceLog4jLayout
-
activateOptions
public void activateOptions()- Specified by:
activateOptions
in interfaceLog4jLayout
-
isTimeAdded
public boolean isTimeAdded()- Specified by:
isTimeAdded
in interfaceLog4jLayout
-
setTimeAdded
public void setTimeAdded(boolean addTime) - Specified by:
setTimeAdded
in interfaceLog4jLayout
-
getHeader
public byte[] getHeader()- Specified by:
getHeader
in interfaceorg.apache.logging.log4j.core.Layout<String>
- Overrides:
getHeader
in classorg.apache.logging.log4j.core.layout.AbstractStringLayout
-
toSerializable
- Specified by:
toSerializable
in interfaceorg.apache.logging.log4j.core.Layout<String>
-
getContentType
- Specified by:
getContentType
in interfaceorg.apache.logging.log4j.core.Layout<String>
- Overrides:
getContentType
in 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:
encode
in interfaceorg.apache.logging.log4j.core.layout.Encoder<org.apache.logging.log4j.core.LogEvent>
- Overrides:
encode
in classorg.apache.logging.log4j.core.layout.AbstractLayout<String>
-