[logback-dev] [Bug 138] New: support looking up property files from classpath resources

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Thu Mar 20 16:35:21 CET 2008


http://bugzilla.qos.ch/show_bug.cgi?id=138

           Summary: support looking up property files from classpath
                    resources
           Product: logback-core
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Joran
        AssignedTo: logback-dev at qos.ch
        ReportedBy: bruno.navert at morganstanley.com


Joran's support for property files (through PropertyAction) is useful, but it
only reads filesystem files. It would be useful to be able to read classpath
resources, that way the logback.xml file as well as its properties files would
be located in the same place (in the class path).

Furthermore, it would be useful for both resource and file lookups to perform
system property resolution in the included file names.

For instance: 

<substitutionProperty
resource="config/logback/logback-${CONFIG_MODE}.properties"/>

where CONFIG_MODE is a system property. In our environment this is set to
something like DEV or QA or PROD, which would allow use of substitution
properties that change based on the environment.


-- 
Configure bugmail: http://bugzilla.qos.ch/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the logback-dev mailing list