Class JacksonFactory
- java.lang.Object
-
- org.apache.logging.log4j.core.layout.JacksonFactory
-
- Direct Known Subclasses:
JacksonFactory.JSON
,JacksonFactory.XML
,JacksonFactory.YAML
abstract class JacksonFactory extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
JacksonFactory.JSON
(package private) static class
JacksonFactory.Log4jXmlPrettyPrinter
When <Event>s are written into a XML file; the "Event" object is not the root element, but an element named <Events> created usingXmlLayout.getHeader()
andXmlLayout.getFooter()
methods.(package private) static class
JacksonFactory.XML
(package private) static class
JacksonFactory.YAML
-
Constructor Summary
Constructors Constructor Description JacksonFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
getPropertNameForContextMap()
protected abstract java.lang.String
getPropertNameForNanoTime()
protected abstract java.lang.String
getPropertNameForSource()
protected abstract java.lang.String
getPropertyNameForInstant()
protected abstract java.lang.String
getPropertyNameForTimeMillis()
protected abstract com.fasterxml.jackson.core.PrettyPrinter
newCompactPrinter()
protected abstract com.fasterxml.jackson.databind.ObjectMapper
newObjectMapper()
protected abstract com.fasterxml.jackson.core.PrettyPrinter
newPrettyPrinter()
(package private) com.fasterxml.jackson.databind.ObjectWriter
newWriter(boolean locationInfo, boolean properties, boolean compact)
(package private) com.fasterxml.jackson.databind.ObjectWriter
newWriter(boolean locationInfo, boolean properties, boolean compact, boolean includeMillis)
-
-
-
Method Detail
-
getPropertyNameForTimeMillis
protected abstract java.lang.String getPropertyNameForTimeMillis()
-
getPropertyNameForInstant
protected abstract java.lang.String getPropertyNameForInstant()
-
getPropertNameForContextMap
protected abstract java.lang.String getPropertNameForContextMap()
-
getPropertNameForSource
protected abstract java.lang.String getPropertNameForSource()
-
getPropertNameForNanoTime
protected abstract java.lang.String getPropertNameForNanoTime()
-
newCompactPrinter
protected abstract com.fasterxml.jackson.core.PrettyPrinter newCompactPrinter()
-
newObjectMapper
protected abstract com.fasterxml.jackson.databind.ObjectMapper newObjectMapper()
-
newPrettyPrinter
protected abstract com.fasterxml.jackson.core.PrettyPrinter newPrettyPrinter()
-
newWriter
com.fasterxml.jackson.databind.ObjectWriter newWriter(boolean locationInfo, boolean properties, boolean compact)
-
newWriter
com.fasterxml.jackson.databind.ObjectWriter newWriter(boolean locationInfo, boolean properties, boolean compact, boolean includeMillis)
-
-