Class Log4j2AtlassianJsonLayoutBuilder
- java.lang.Object
-
- org.apache.log4j.builders.AbstractBuilder<org.apache.log4j.Layout>
-
- com.atlassian.confluence.impl.logging.log4j.layout.Log4j2AtlassianJsonLayoutBuilder
-
- All Implemented Interfaces:
org.apache.log4j.builders.Builder<org.apache.log4j.Layout>
,org.apache.log4j.builders.layout.LayoutBuilder
,org.apache.log4j.builders.Parser<org.apache.log4j.Layout>
@Plugin(name="com.atlassian.logging.log4j.layout.JsonLayout", category="Log4j Builder") public final class Log4j2AtlassianJsonLayoutBuilder extends org.apache.log4j.builders.AbstractBuilder<org.apache.log4j.Layout> implements org.apache.log4j.builders.layout.LayoutBuilder
Provides an adapter between Log4j 2.x and the legacyJsonLayout
provided by atlassian-logging.Note that normally, the built-in ability of log4j 2.x to adapt log4j 1.2 layouts would be sufficient, but for some reason it doesn't invoke the
Layout#activateOptions()
method, so this adapter has to do it explicitly.- Since:
- 8.0
-
-
Constructor Summary
Constructors Constructor Description Log4j2AtlassianJsonLayoutBuilder(String prefix, Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.log4j.Layout
parse(org.apache.log4j.config.PropertiesConfiguration config)
org.apache.log4j.Layout
parse(Element element, org.apache.log4j.xml.XmlConfiguration config)
-
Methods inherited from class org.apache.log4j.builders.AbstractBuilder
buildFilters, getBooleanProperty, getBooleanProperty, getBooleanValueAttribute, getIntegerProperty, getLongProperty, getNameAttribute, getNameAttributeKey, getProperties, getProperty, getProperty, getValueAttribute, getValueAttribute, set, set, set, set, substVars
-
-
-
-
Constructor Detail
-
Log4j2AtlassianJsonLayoutBuilder
public Log4j2AtlassianJsonLayoutBuilder(String prefix, Properties props)
-
-
Method Detail
-
parse
public org.apache.log4j.Layout parse(org.apache.log4j.config.PropertiesConfiguration config)
- Specified by:
parse
in interfaceorg.apache.log4j.builders.Parser<org.apache.log4j.Layout>
-
parse
public org.apache.log4j.Layout parse(Element element, org.apache.log4j.xml.XmlConfiguration config)
- Specified by:
parse
in interfaceorg.apache.log4j.builders.Parser<org.apache.log4j.Layout>
-
-