You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2005/08/03 16:29:01 UTC
DO NOT REPLY [Bug 35996] New: -
Add support for ant-like in log4j.xml
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35996>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35996
Summary: Add support for ant-like <property> in log4j.xml
Product: Log4j
Version: 1.2
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P2
Component: Configurator
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: ndeloof@capgemini.fr
DOMConfigurator is able to replace variables using it's internal props attribute
that is never set.
It may be cool to use an ant-like <property> tag (perhaps the existing code may
be reused) in log4j.xml to enable variable substitution from various sources.
Using this user could share a common (maybe complex) log4j configuration and
just setup local (system dependant) settings, like logging dir or anything else,
without having to know anything about log4j.
Having recursive variable substitution, we could setup log4j like this :
<log4:configuration>
<property file="${user.home}/custom.properties"/>
<appender name="DEBUG" class="...">
<param name="File" value="${custom.logs.home}/debug.log"/>
...
This enhancement has been discussed in :
http://marc.theaimsgroup.com/?t=112305405000001&r=1&w=2
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org