[logback-dev] [Bug 45] New: ClassCastException with log4j-bridge
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Wed Feb 14 23:44:47 CET 2007
http://bugzilla.qos.ch/show_bug.cgi?id=45
Summary: ClassCastException with log4j-bridge
Product: logback-general
Version: unspecified
Platform: PC
OS/Version: Windows
Status: NEW
Severity: blocker
Priority: P1
Component: build-structure
AssignedTo: logback-dev at qos.ch
ReportedBy: mreynolds at anystream.com
I am using log4j-bridge version 0.9.
Many of the methods in org.apache.log4j.Category cast "Object message" to
String resulting in a ClassCastException if the logging call is passing an
object other than a String.
Instead of casting, you should probably call message.toString(), which, in the
absence of RenderSupport, is what log4j would do anyway.
Thanks for logback!
--
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the logback-dev
mailing list