Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-739

Add a new AllLogRule to capture all logs for all loggers

    XMLWordPrintable

Details

    Description

      Makes it simpler to implement http://markmail.org/message/hfbzej4rh6ufqaud for tests.

      Example from ServletEnvironmentTest:

      @Rule
      public AllLogRule logRule = new AllLogRule();
      ...
      assertEquals("Error getting resource [bad resource] because of invalid path format. Reason: [invalid url]", this.logRule.getMessage(0));
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: