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

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

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • None
    • Implementations
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: