Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-16886

Support logging categories in ListeningTestLogger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Done
    • None
    • 2.14
    • None

    Description

      ListeningTestLogger should support categories.
      For now getLogger(Object ctgr) method does not delegate logger creation.

      For example:

          @Test
          public void testCategory() {
              ListeningTestLogger log = new ListeningTestLogger(log());
      
              log.getLogger("category1").info("test");
          }
      

      expected output:
      [thread-name%][category1] test

      actual output
      [thread-name%][root] test

      Attachments

        Issue Links

          Activity

            People

              xtern Pavel Pereslegin
              xtern Pavel Pereslegin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m