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 String
ERROR_STRING
-
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout
DEFAULT_STRING_BUILDER_SIZE, MAX_STRING_BUILDER_SIZE
-
-
Constructor Summary
Constructors Constructor Description Log4jKettleLayout(Charset charset, boolean timeAdded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateOptions()
void
encode(org.apache.logging.log4j.core.LogEvent source, org.apache.logging.log4j.core.layout.ByteBufferDestination destination)
String
format(org.apache.logging.log4j.core.LogEvent event)
Map<String,String>
getContentFormat()
String
getContentType()
byte[]
getFooter()
byte[]
getHeader()
boolean
ignoresThrowable()
boolean
isTimeAdded()
void
setTimeAdded(boolean addTime)
String
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
-
-
-
-
Field Detail
-
ERROR_STRING
public static final String ERROR_STRING
- See Also:
- Constant Field Values
-
-
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 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
-
getFooter
public byte[] getFooter()
- Specified by:
getFooter
in interfaceorg.apache.logging.log4j.core.Layout<String>
- Overrides:
getFooter
in classorg.apache.logging.log4j.core.layout.AbstractStringLayout
-
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
public String toSerializable(org.apache.logging.log4j.core.LogEvent event)
- Specified by:
toSerializable
in interfaceorg.apache.logging.log4j.core.Layout<String>
-
getContentType
public String getContentType()
- Specified by:
getContentType
in interfaceorg.apache.logging.log4j.core.Layout<String>
- Overrides:
getContentType
in classorg.apache.logging.log4j.core.layout.AbstractStringLayout
-
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>
-
-