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: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to