[logback-dev] [Bug 45] ClassCastException with log4j-bridge
bugzilla-daemon at pixie.qos.ch
bugzilla-daemon at pixie.qos.ch
Thu Feb 15 02:24:42 CET 2007
http://bugzilla.qos.ch/show_bug.cgi?id=45
------- Comment #1 from mreynolds at anystream.com 2007-02-15 02:24 -------
I ended up casting for the null case and using .toString() for the not null
case:
public void trace(Object message) {
if (message == null) {
lbLogger.debug(TRACE_MARKER, (String) message);
} else {
lbLogger.debug(TRACE_MARKER, message.toString());
}
}
--
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