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

Jdk14Logger extremely slow due to method name extraction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.3
    • None
    • Operating System: other
      Platform: Other

    • 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

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

            Dates

              Created:
              Updated:
              Resolved: