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

Ceki Gulcu (JIRA) noreply-jira at qos.ch
Mon Oct 17 22:09:13 CEST 2011

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

Ceki Gulcu commented on LBCORE-212:

Hi Alexander,

Environment variables are now part of the property look up process. See also [1].

Here is en excerpt from the modified docs:

  Properties are looked up in the the local scope first, in the context scope second, in the system properties scope third, 
  and in the OS environment last.

Let me know if this works for you.

[1] http://github.com/ceki/logback/commit/0ee187332ad85e

> 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