Package com.sdicons.json.log4j
Class JSONLayout
java.lang.Object
org.apache.log4j.Layout
com.sdicons.json.log4j.JSONLayout
- All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler
public class JSONLayout
extends org.apache.log4j.Layout
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanFields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformat(org.apache.log4j.spi.LoggingEvent loggingEvent) booleanbooleanbooleanvoidsetIgnoreThrowable(String ignoreThrowable) voidsetPrettyPrint(String prettyPrint) Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
-
Field Details
-
prettyPrint
private boolean prettyPrint -
ignoreThrowable
private boolean ignoreThrowable -
activePrettyPrint
private boolean activePrettyPrint -
activeIgnoreThrowable
private boolean activeIgnoreThrowable
-
-
Constructor Details
-
JSONLayout
public JSONLayout()
-
-
Method Details
-
format
- Specified by:
formatin classorg.apache.log4j.Layout
-
activateOptions
public void activateOptions() -
ignoresThrowable
public boolean ignoresThrowable()- Specified by:
ignoresThrowablein classorg.apache.log4j.Layout
-
isPrettyPrint
public boolean isPrettyPrint() -
setPrettyPrint
-
isIgnoreThrowable
public boolean isIgnoreThrowable() -
setIgnoreThrowable
-