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

Not able to resolve method org.apache.log4jCategory.getParent

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • 1.7.12
    • 1.7.x
    • log4j-over-slf4j
    • None
    • Operating System: Windows NT
      Platform: PC

    Description

      I am using a third-party API which internally uses a custom logger based on log4j. Replacing the log4j with log4j-over-slf4j doesn't help as one of the method is not present in the log4j-over-slf4j.

      Can't share much of the trace as data sharing policy:

      Caused by: java.lang.NoSuchMethodError: org.apache.log4j.Logger.getParent()Lorg/apache/log4j/Category;

      Verified the same in codebase of log4j-over-slf4j and this method getParent() is not present in the jar.

      Whereas for log4j v 1.2.17, this is present.

      public final Category getParent()

      { return this.parent; }

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            himanshu.bhardwaj Himanshu Bhardwaj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: