logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <ggreg...@apache.org>
Subject Re: [log4j2] configuration file names
Date Sun, 29 Apr 2012 13:15:12 GMT
On Saturday, April 28, 2012, Ralph Goers wrote:

> See below -
>
> On Apr 28, 2012, at 5:30 AM, Christian Grobmeier wrote:
>
> > Hi,
> >
> > just fixed the docs, which said, log4j2 is looking for log4j.xml /
> > log4j-test.xml.
> > It is actually looking for log4j2.xml and log4j2-test.xml
>
> Yes, that is correct. Thanks for fixing it.
>
> >
> > I couldn't find the code if log4j.json is looked up or log4j2.json.
>
> ConfigurationFactory defines the prefixes, log4j2 and log4j2-test.  Each
> individual ConfigurationFactory implementation has a method named
> getSupportedTypes that returns the file extensions that
> ConfigurationFactory handles. In the case of JSONConfigurationFactory it
> returns .json and .jsn.  ConfigurationFactory would then determine whether
> JSONConfigurationFactory should be used by looking for a configuration file
> that ends with one of the suffixes.
>
> >
> > Unfortunately the system param to give an alternate file as config file
> is:
> > -Dlog4j.configurationFactory=xyz.xml
> >
> > If we choose log4j2 as product name, we should rename this to:
> > log4j2.configurationFactory


Please,  please, please, let's keep it "log4j"

Gary

> >
> > right?
>
> Yes - if we stick with log4j2 then it would make sense to change that.
>
> Ralph
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org<javascript:;>
> For additional commands, e-mail: log4j-dev-help@logging.apache.org<javascript:;>
>
>

-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: http://bit.ly/ECvg0
Spring Batch in Action: http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>

Mime
View raw message