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

Jdk14Logger extremely slow due to method name extraction

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.3
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      18184

      Description

      The Jdk14Logger of Commons logging is extremely slow, even if logging is not
      enabled. This is due to the fact that an exception is created so that its stack
      trace can be used to determine the callers method name.

      Attached patch will surround the code with a logger.isLoggable(level) check, so
      that this is at least avoided when logging is not enabled. (though I would
      rather see that code completely removed)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bruno Bruno Dumon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: