Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-131

NLOG4j's Category.log(priority, message) method signature does not match log4j

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Implementations
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      The signature of this method differs between NLOG4j and log4j.

      log4j: Category.log(Priority, Object)
      NLOG4j: Category.log(Priority, String)

      Code compiled against log4j throws this exception when using NLOG4j:
      java.lang.NoSuchMethodError: org.apache.log4j.Logger.log(Lorg/apache/log4j/Priority;Ljava/lang/Object;)V

      Changing the method signature to (Priority, Object) fixes the problem.

      Problem observed in NLOG4j 1.2.25

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              dnault@laszlosystems.com David Nault
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: