Hi,<div><br></div><div>I have this logback.xml file:</div><div><br></div><div><div><configuration debug="true" scan="true" scanPeriod="60 seconds"></div><div><br></div><div> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"></div>
<div> <layout class="ch.qos.logback.classic.PatternLayout"></div><div> <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern></div><div> </layout></div><div>
</appender></div><div> </div><div> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"></div><div> <File>${MY_HOME}/logs/mylog.log</File></div><div>
</div><div> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"></div><div> <FileNamePattern>logs/my.%d{yyyy-MM-dd}.log</FileNamePattern></div><div> <MaxHistory>30</MaxHistory></div>
<div> </rollingPolicy></div><div> </div><div> <layout class="ch.qos.logback.classic.PatternLayout"></div><div> <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level - %msg%n</Pattern></div>
<div> </layout></div><div> </div><div> </appender> </div><div> </div><div> <root level="TRACE"></div><div> <appender-ref ref="FILE"/></div><div> </root></div>
<div> </div><div></configuration></div><div><br></div><div><br></div>And ${OSC_HOME} is a defined system variable (echo $OSC_HOME on linux shows the correct path).</div><div><br></div><div>The thing is that logback doesnt seem to read it properly, it stores the logs under OSC_HOME_IS_UNDEFINED/logs/my.log</div>
<div><br></div><div>What am I doing wrong? Thanks a lot!<br>-- <br>Fernandez, Pablo.<br>
</div>