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

    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: