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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.7.x
    • Fix Version/s: 1.7.12
    • Component/s: log4j-over-slf4j
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: