Uploaded image for project: 'Commons Logging'
  1. Commons Logging
  2. LOGGING-87

[logging] Add MemoryLog

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.4
    • 1.1.0
    • None
    • Operating System: All
      Platform: All

    • 27663

    Description

      Statistics show, that logging code take normally nearly 4% of the
      application's code. To increase coverage and exclude side-effects from the
      logging code it is useful to have unit tests running the compete logging code,
      too. The MemoryLog class is especially designed for this purpose, since every
      log entry can be retrieved later on as big list with each entry represented by
      a bean. This makes it e.g. easy to test for thrown and logged exceptions.

      Code for MemoryLog and MemoryLogTest attached, code borrows from SimpleLog.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--MemoryLog.java
          11 kB
          joerg.schaible@gmx.de
        2. ASF.LICENSE.NOT.GRANTED--MemoryLogTest.java
          3 kB
          joerg.schaible@gmx.de

        Activity

          People

            Unassigned Unassigned
            joehni Joerg Schaible
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: