commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <skitch...@apache.org>
Subject Re: [logging] minimal jar vs api jar
Date Sat, 21 Jan 2006 21:29:15 GMT
On Sat, 2006-01-21 at 17:05 +0000, robert burrell donkin wrote:
> On Sat, 2006-01-21 at 00:09 +1100, Torsten Curdt wrote: 
> > On 20.01.2006, at 12:02, Simon Kitching wrote:
> > 
> > > Re the proposed "minimal" jarfile:
> > >
> > > What exactly are the differences between this and the existing
> > > commons-logging-api jarfile?
> > 
> > Basically the implementations.
> > 
> > It would be nice if you could satisfy the commons-logging dependency
> > by just having the API jar in the classpath. But this also means no
> > implementations and no configuration. Basically it should not log at
> > all.

Can't you just use commons-logging-api.jar and a
commons-logging.properties file that specifies the NoOpLog logger?

=======
# commons-logging.properties file: disable all logging
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLogger
=======

This properties file just needs to be in the classpath (including inside
a jarfile).

Regards,

Simon



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message