Package com.aeontronix.elogging.log4j2
Class ELJsonLayout
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.AbstractLayout<String>
-
- org.apache.logging.log4j.core.layout.AbstractStringLayout
-
- com.aeontronix.elogging.log4j2.ELJsonLayout
-
- All Implemented Interfaces:
Serializable,org.apache.logging.log4j.core.Layout<String>,org.apache.logging.log4j.core.StringLayout
@Plugin(name="ELJsonLayout", category="Core", elementType="layout", printObject=true) public class ELJsonLayout extends org.apache.logging.log4j.core.layout.AbstractStringLayout- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intRAWJSON_MARK_LENstatic StringRAWJSON_MARKER-
Fields inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout
DEFAULT_STRING_BUILDER_SIZE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedELJsonLayout(Charset charset)
-
Method Summary
Modifier and Type Method Description static ELJsonLayoutcreateLayout(Charset charset, boolean prettyPrint)StringtoSerializable(org.apache.logging.log4j.core.LogEvent event)-
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractStringLayout
getBytes, getCharset, getContentType, getStringBuilder, toByteArray
-
Methods inherited from class org.apache.logging.log4j.core.layout.AbstractLayout
getContentFormat, getFooter, getHeader
-
-
-
-
Field Detail
-
RAWJSON_MARKER
public static final String RAWJSON_MARKER
- See Also:
- Constant Field Values
-
RAWJSON_MARK_LEN
public static final int RAWJSON_MARK_LEN
-
-
Constructor Detail
-
ELJsonLayout
protected ELJsonLayout(Charset charset)
-
-
Method Detail
-
createLayout
@PluginFactory public static ELJsonLayout createLayout(@PluginAttribute(value="charset",defaultString="UTF-8") Charset charset, @PluginAttribute(value="prettyPrint",defaultString="false") boolean prettyPrint)
-
toSerializable
public String toSerializable(org.apache.logging.log4j.core.LogEvent event)
-
-