[slf4j-dev] [Bug 280] New: missing constructor in org.apache.log4j.PatternLayout
bugzilla-daemon at qos.ch
bugzilla-daemon at qos.ch
Mon Nov 5 16:10:24 CET 2012
http://bugzilla.slf4j.org/show_bug.cgi?id=280
Summary: missing constructor in org.apache.log4j.PatternLayout
Product: SLF4J
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P1
Component: log4j-over-slf4j
AssignedTo: slf4j-dev at qos.ch
ReportedBy: thomas.mortagne at gmail.com
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.
--
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the slf4j-dev
mailing list