[logback-dev] [JIRA] Commented: (LBCORE-212) Give access to environment variables in configuration file

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Thu Jun 23 16:26:51 CEST 2011

    [ http://jira.qos.ch/browse/LBCORE-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12045#action_12045 ] 

Ceki Gulcu commented on LBCORE-212:

Accessing environment variables could probably be quite useful. However, I don't see the point in parametrize the prefix for accessing environment variables. Let's just have it fixed to "env.". The substVars method in the ch.qos.logback.core.util.OptionHelper class seems like the correct location for adding support environment variables.

> Give access to environment variables in configuration file
> ----------------------------------------------------------
>                 Key: LBCORE-212
>                 URL: http://jira.qos.ch/browse/LBCORE-212
>             Project: logback-core
>          Issue Type: New Feature
>            Reporter: Alexandre Garnier
>            Assignee: Logback dev list
> It would be very nice to be able to access environment variables in configuration files.
> Maybe like in ant with <property environment="env"/> and then ${env.PATH} to access variable.
> In my use case, it's necessary to get the path to the property file to load...

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list