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

Add StatusLoggerRule to allow unit tests to set a status level

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8
    • Component/s: API
    • Labels:
      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

            • Assignee:
              jvz Matt Sicker
              Reporter:
              jvz Matt Sicker
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: