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

Alexandre Garnier (JIRA) noreply-jira at qos.ch
Tue Jun 28 23:18:51 CEST 2011


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

Alexandre Garnier commented on LBCORE-212:
------------------------------------------

Maybe, the prefix parametrization is for people who could have properties starting with "env." ?...

The solution can also be simply add all env vars as prefixed properties in ch.qos.logback.core.joran.action.PropertyAction :
 * no impact on substVars system with a test on the key to match the prefix
 * the possibility to parametrize the prefix if we want

> 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: Ceki Gulcu
>
> 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