On Mon, May 12, 2008 at 10:04 AM, Stefano Bagnara <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  I see jSieve include a static class used to lookup the common logger:
>
> http://svn.apache.org/repos/asf/james/jsieve/trunk/src/main/java/org/apache/jsieve/Logger.java
>
>  This is a singleton and return a commons-logging Log object.
>  Every class uses "Logger.getLog()" to get a common-logging logger instance
> so every class already depends on commons-logging.
>
>  What are the advantages of this class over the direct use of
> commons.logging LogFactory ?

it allows the shared log instance can be set

all the singletons should really be replaced by IoC but that would
require some effort and entail some risk

- robert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to