Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 1.1.0
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      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.

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

        Activity

        joerg.schaible@gmx.de created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 27663 12341334
        Henri Yandell made changes -
        Project Commons [ 12310458 ] Commons Logging [ 12310484 ]
        Component/s Logging [ 12311124 ]
        Affects Version/s 1.0.4 [ 12311678 ]
        Key COM-1182 LOGGING-87
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Henri Yandell made changes -
        Affects Version/s 1.0.4 [ 12311713 ]
        Henri Yandell made changes -
        Reporter Jörg Schaible [ joerg.schaible@gmx.de ] Joerg Schaible [ joehni ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Lundberg made changes -
        Fix Version/s 1.1.0 [ 12311848 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Joerg Schaible
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development