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

Add StatusLoggerRule to allow unit tests to set a status level

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.8
    • API
    • None

    Description

      In unit tests that do not use a configuration file, it would be useful to have a JUnit rule that allows the default status logger level to be set. For example, some tests are for error scenarios that spew out a lot of status messages that are expected errors and make the unit test output hard to interpret. In such tests, this rule could be used to set the level to FATAL or OFF. This could also be used for debugging purposes.

      Attachments

        Activity

          People

            mattsicker Matt Sicker
            mattsicker Matt Sicker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: