[slf4j-dev] [Bug 147] Document the fact an LogLogger is a Logger

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Sat Sep 5 14:58:23 CEST 2009


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





--- Comment #1 from Ceki Gulcu <listid at qos.ch>  2009-09-05 14:58:23 ---

Two bits of information should answer your question.

 1) A LocLogger *is* a Logger and can be used as such.
 2) When you write

 Logger lx = LoggerFactory.getLogger("X");
 LocLogger llx = llFactory.getLocLogger("X");

then "llx" is actually a wrapper around that very "lx". (llx wraps that very
specific "lx").

So, if in a given class you are doing both regular and localized logging, the
LocLogger is sufficient for both needs.

However, it is possible that a class needs to do logging before it has a chance
to get a handle on a LogLoggerFactory, in that case, a regular Logger would be
used.


-- 
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