commons-user mailing list archives

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

On Thu, Apr 12, 2012 at 2:59 PM, Paul Holding <> wrote:
> Is it possible to specify the name of the Log4J configuration file from
> within the file?

it should be possible, say the docs.

> I have tried setting "" in
> 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.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message