Class JacksonFactory.JSON
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.JacksonFactory
-
- org.apache.logging.log4j.core.layout.JacksonFactory.JSON
-
- Enclosing class:
- JacksonFactory
static class JacksonFactory.JSON extends JacksonFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.layout.JacksonFactory
JacksonFactory.JSON, JacksonFactory.Log4jXmlPrettyPrinter, JacksonFactory.XML, JacksonFactory.YAML
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
encodeThreadContextAsList
private boolean
includeStacktrace
private boolean
objectMessageAsJsonObject
private boolean
stacktraceAsString
-
Constructor Summary
Constructors Constructor Description JSON(boolean encodeThreadContextAsList, boolean includeStacktrace, boolean stacktraceAsString, boolean objectMessageAsJsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getPropertNameForContextMap()
protected java.lang.String
getPropertNameForNanoTime()
protected java.lang.String
getPropertNameForSource()
protected java.lang.String
getPropertyNameForInstant()
protected java.lang.String
getPropertyNameForTimeMillis()
protected com.fasterxml.jackson.core.PrettyPrinter
newCompactPrinter()
protected com.fasterxml.jackson.databind.ObjectMapper
newObjectMapper()
protected com.fasterxml.jackson.core.PrettyPrinter
newPrettyPrinter()
-
Methods inherited from class org.apache.logging.log4j.core.layout.JacksonFactory
newWriter, newWriter
-
-
-
-
Method Detail
-
getPropertNameForContextMap
protected java.lang.String getPropertNameForContextMap()
- Specified by:
getPropertNameForContextMap
in classJacksonFactory
-
getPropertyNameForTimeMillis
protected java.lang.String getPropertyNameForTimeMillis()
- Specified by:
getPropertyNameForTimeMillis
in classJacksonFactory
-
getPropertyNameForInstant
protected java.lang.String getPropertyNameForInstant()
- Specified by:
getPropertyNameForInstant
in classJacksonFactory
-
getPropertNameForSource
protected java.lang.String getPropertNameForSource()
- Specified by:
getPropertNameForSource
in classJacksonFactory
-
getPropertNameForNanoTime
protected java.lang.String getPropertNameForNanoTime()
- Specified by:
getPropertNameForNanoTime
in classJacksonFactory
-
newCompactPrinter
protected com.fasterxml.jackson.core.PrettyPrinter newCompactPrinter()
- Specified by:
newCompactPrinter
in classJacksonFactory
-
newObjectMapper
protected com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
- Specified by:
newObjectMapper
in classJacksonFactory
-
newPrettyPrinter
protected com.fasterxml.jackson.core.PrettyPrinter newPrettyPrinter()
- Specified by:
newPrettyPrinter
in classJacksonFactory
-
-