Class Log4j2LegacyPatternLayoutWithStackTraceBuilder
- java.lang.Object
-
- org.apache.log4j.builders.AbstractBuilder<org.apache.log4j.Layout>
-
- com.atlassian.confluence.impl.logging.log4j.layout.Log4j2LegacyPatternLayoutWithStackTraceBuilder
-
- 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>
- Direct Known Subclasses:
Log4j2LegacyPatternLayoutWithContextBuilder
@Plugin(name="com.atlassian.confluence.util.PatternLayoutWithStackTrace", category="Log4j Builder") public class Log4j2LegacyPatternLayoutWithStackTraceBuilder extends org.apache.log4j.builders.AbstractBuilder<org.apache.log4j.Layout>
A Log4j2.xPlugin
that constructs a Log4j1.xLayout
that emulatesPatternLayoutWithStackTrace
as used under log4j1.x. This is for use by log4j2.x under its log4j1.x emulation mode.- Since:
- 7.14
-
-
Constructor Summary
Constructors Constructor Description Log4j2LegacyPatternLayoutWithStackTraceBuilder(String prefix, Properties props)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
modifyPattern(String pattern)
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
-
Log4j2LegacyPatternLayoutWithStackTraceBuilder
public Log4j2LegacyPatternLayoutWithStackTraceBuilder(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>
-
-