Thanks for your response, Ceki.

> >When using PropertyConfigurator I found this very convenient
> >and Ant has this feature in its xml build file. Has anyone
> >experience this and found a workaround for it? Is there any
> >reason this was not added or is it planned for future releases?
> 
> How do you envision this working? Can you please provide an example?
 
I was thinking about something similar to ant's syntax,

    <!-- Load properties from a file -->
    <property file="log4j.properties"/>

    <!-- Explicitely define a property -->
    <property name="smtp.host"   value="smtp.mycompany.com"/>

Not sure if this is feasible... the DTD would need to be updated
to support this new 'property' element.

The reason I asked, is because when using PropertyConfigurator, I found 
it convenient and easier to share and copy log files by having a 
section that defines the application dependent parameters at the
beginning of my configuration file and having the appenders unchanged
across applications and reference the variables... I started using 
DOMConfigurator in order to be able to use AsyncAppender.

Hope this helps.

Best regards,

Fabien

---------------------------------------------      
Fabien Modoux,
Voicemate - http://www.voicemate.com



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

Reply via email to