Class Log4j2LegacyPatternLayoutWithContextBuilder

java.lang.Object
org.apache.log4j.builders.AbstractBuilder<org.apache.log4j.Layout>
com.atlassian.confluence.impl.logging.log4j.layout.Log4j2LegacyPatternLayoutWithStackTraceBuilder
com.atlassian.confluence.impl.logging.log4j.layout.Log4j2LegacyPatternLayoutWithContextBuilder
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.confluence.util.PatternLayoutWithContext", category="Log4j Builder") public final class Log4j2LegacyPatternLayoutWithContextBuilder extends Log4j2LegacyPatternLayoutWithStackTraceBuilder
A Log4j2.x Plugin that constructs a Log4j1.x Layout that emulates PatternLayoutWithContext as used under log4j1.x. This is for use by log4j2.x under its log4j1.x emulation mode.
Since:
7.14
  • Field Summary

    Fields inherited from class org.apache.log4j.builders.AbstractBuilder

    APPEND_PARAM, BUFFER_SIZE_PARAM, BUFFERED_IO_PARAM, FILE_PARAM, IMMEDIATE_FLUSH_PARAM, MAX_BACKUP_INDEX, MAX_SIZE_PARAM, NULL, RELATIVE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Log4j2LegacyPatternLayoutWithContextBuilder

      public Log4j2LegacyPatternLayoutWithContextBuilder(String prefix, Properties props)
  • Method Details

    • modifyPattern

      protected String modifyPattern(String pattern)
      Overrides:
      modifyPattern in class Log4j2LegacyPatternLayoutWithStackTraceBuilder
    • parse

      public org.apache.log4j.Layout parse(org.apache.log4j.config.PropertiesConfiguration config)
      Specified by:
      parse in interface org.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 interface org.apache.log4j.builders.Parser<org.apache.log4j.Layout>