You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Bertrand Delacretaz <bd...@apache.org> on 2013/05/15 15:29:51 UTC
Re: No two loggers with the same category, why?
On Mon, Nov 19, 2012 at 5:54 PM, Bertrand Delacretaz
<bd...@apache.org> wrote:
> ...The code below [1] was introduced in for SLING-525, and prevents
> creating two loggers that have one or more log categories in common -
> do we really want that?...
I'm revisiting this...just so that the list archives are complete:
this is also needed because loggers are acquired via the
org.slf4j.ILoggerFactory interface:
/* Return an appropriate Logger instance as specified by the name
parameter. */
Logger getLogger(String name)
So we need a 1-to-1 mapping of a log category (name) to Logger.
Or something more clever that aggregates Loggers which share
categories, but that's probably going too far.
-Bertrand