commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Re: [logging] Specify the Log4J configuration file from commons-logging.properties
Date Sat, 14 Apr 2012 05:59:20 GMT
Hello Paul,

On Thu, Apr 12, 2012 at 2:59 PM, Paul Holding <paul@pholding.co.uk> wrote:
> Is it possible to specify the name of the Log4J configuration file from
> within the commons-logging.properties file?

it should be possible, say the docs.

> I have tried setting "log4j.configuration=log4j-myapp.properties" in
> commons-logging.properties however Log4J throws an error saying that it
> hasn't been configured. The only way I can specify the name of the Log4J
> configuration file seems be using the -Dlog4j.configuration=<your_file> at
> the command line or using System.setProperty("log4j.configuration",
> "<your_file>");

Can you tell us about your folder structure (where do your files
reside)? It might help to look at this issue a bit more in detail.

> Have I misinterpreted the text in the Commons Logging user guide regarding
> Log4J or is there something I'm missing?

I just read the docs, I would have done it like you have.

Cheers
Christian



-- 
http://www.grobmeier.de
https://www.timeandbill.de

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


Mime
View raw message