[slf4j-dev] [Bug 19] nlog4j is incompatible to log4j

bugzilla-daemon at gil.qos.ch bugzilla-daemon at gil.qos.ch
Thu Feb 9 21:17:28 CET 2006


http://bugzilla.slf4j.org/show_bug.cgi?id=19





------- Additional Comments From boris.unckel.mlg at gmx.net  2006-02-09 21:17 -------
There might be a chance:

public org.apache.log4j.Category extends Object

public org.apache.logj4.Logger extends Category

public org.slf4j.impl.NLog4jImpl extends o.a.l.Logger implements o.s.Logger

The LogManager just has to return an NLog4jImpl instance instead of an
o.a.l.Logger instance.

This is bad for people who extend o.a.l.Logger but good for all "plain log4j"
_users_.

The compiler will assign/bind the correct method, even when someone does a
debug((Object)"Hello World", new Exception());

What do you think?

-- 
Configure bugmail: http://bugzilla.slf4j.org/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 slf4j-dev mailing list