variable substitution in logback 0.9.9

Hi, Does variable substitution works in a whole logback.xml? I'm using version 0.9.9. It works here: <configuration> <include file="${filec}"/> </configuration> and it works here: <include file="${user.pal}" /> but not here: <root> <level value="${logger.level}" /> <appender-ref ref="redirectConsole" /> </root> Should it work also in <level section? I'm asking because I'd like to configure different levels on different machines Thanks

Hello Egon, No, variable substituion does not work for levels which is a bug. Please create a jira issue so the problem can be addressed. Egon Exparotiminator wrote:
Hi,
Does variable substitution works in a whole logback.xml? I'm using version 0.9.9. <http://0.9.9.>
It works here: <configuration> <include file="${filec}"/> </configuration>
and it works here: <include file="${user.pal}" />
but not here: <root> <level value="${logger.level}" /> <appender-ref ref="redirectConsole" /> </root>
Should it work also in <level section? I'm asking because I'd like to configure different levels on different machines
Thanks
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch

Hello Egon, Just added code to support for level value variable substitution. It will ship with logback version 0.9.12. Egon Exparotiminator wrote:
Hi,
Does variable substitution works in a whole logback.xml? I'm using version 0.9.9. <http://0.9.9.>
It works here: <configuration> <include file="${filec}"/> </configuration>
and it works here: <include file="${user.pal}" />
but not here: <root> <level value="${logger.level}" /> <appender-ref ref="redirectConsole" /> </root>
Should it work also in <level section? I'm asking because I'd like to configure different levels on different machines
Thanks
-- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch
participants (3)
-
Ceki Gulcu
-
Ceki Gulcu
-
Egon Exparotiminator