logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: Datasource settings in config file for jdbcappender.
Date Thu, 06 Dec 2007 18:28:50 GMT

On Dec 5, 2007, at 9:30 PM, srinivas ramgopal wrote:

>
> Hi all,
>
> A newbie question - Is there a way to avoid hard coding of the  
> database
> connection values in the JDBCAppender in log4j.xml? In other words,  
> can a
> datasource be referenced in log4j.xml?
>
> Any pointers to code snippets is highly appreciated.
>
> Thanks in advance for yout valuable input.
>


You can use ${SYSTEMPROPERTYNAME} in parameter values to replace with  
the value of a system property.

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


Mime
View raw message