Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2504

Missing JavaDoc in ThrowablePatternConverter newInstance(Configuration, String[])

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.2, 2.11.1
    • None
    • Pattern Converters
    • None

    Description

      While upgrading from Log4j 2.7 to the most recent 2.11.1 I noticed, that the API forĀ ThrowablePatternConverter changed.

      It used to be (up until 2.8.1):

      ThrowablePatternConverter newInstance(final String[] options)

      but starting from 2.8.2 it is:

      ThrowablePatternConverter newInstance(final Configuration config, final String[] options)

      The new Parameter is not described in JavaDoc and I cannot figure out how I would get a Configuration object which would cause it to behave the same as with 2.7.

      In addition: I think it would be a good idea to add a convenience ThrowablePatternConverter newInstance(final String[] options) which uses said defaultĀ Configuration both to easy upgrades, and to allow backwards compatibility for stuff compiled against 2.7 (in my case a LogEventPatternConverter deployed toTomcat).

      Attachments

        Activity

          People

            Unassigned Unassigned
            j-be Juri Berlanda
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: