I have this logback.xml file:
Things are actually working as designed: logback doesn't read environment variables at all when doing variable substitution. Quoting the documentation:
The value of the substituted variable can be defined in the configuration file itself, in an external properties file or as a system property.
So, either use one of the mentioned solutions or get OSC_HOME_IS_UNDEFINED
:)