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

missing constructor in org.apache.log4j.PatternLayout

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • None
    • None
    • log4j-over-slf4j
    • None
    • Operating System: Linux
      Platform: PC

    Description

      It's in version 1.7.2 (can't find it in the list).

      When using default org.apache.velocity.app.VelocityEngine (Velocity 1.7) it's trying to create a new PatternLayout in it's LOG4J logger but it's using the constructor which takes a String and this constructor is not provider by log4j-over-slf4j.

      It used to "work" well when there was no PatternLayout at all because Velocity catch NoClassDefFoundError but it does not expect a NoSuchMethodError.

      The workaround (and what should be done anyway) is to provide a SLF4J based custom logger to Velocity. But still it would be nice to mimic a bit better log4j for this use case.

      Attachments

        Activity

          People

            christian.trutz@gmail.com Christian Trutz
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: