<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.e-mailformatvorlage17
        {mso-style-name:e-mailformatvorlage17;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal"><span style="color:#1f497d">Hi all – I’m wondering if this is expected behavior. I’ve a web application war file with a minimal logback.xml file in its WEB-INF/classes folder, which then uses a JNDI env variable to pull in a config file that is external to the application. This greatly facilitates deployment because I can override the env variable when I deploy the war (e.g. in Tomcat, a context.xml file) and specify the external location of the file, allowing me to deploy the war unchanged on different platforms and environments.</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">But… I was hoping that having “scan=true” in the logback.xml file would allow me to alter the runtime logback configuration without restarting the context, but it doesn’t seem to be working.</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">My logback.xml file:</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal">
<span style="font-size:10.0pt;font-family:"Courier New""><configuration scan="true"></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">  <insertFromJNDI env-entry-name="java:comp/env/appHome" as="appHome" /></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">  <include file="${appHome}/conf/logback-app.xml"/></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">  <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"/></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""></configuration></span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Is this a bug or a known/accepted limitation of using scan=true?</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p><p class="MsoNormal"><span style="color:#1f497d">Thanks!</span></p><p class="MsoNormal"><span style="color:#1f497d"> </span></p><div><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Century Gothic","sans-serif";color:#1f497d">Richard Sand | Managing Director</span><span style="font-family:"Century Gothic","sans-serif";color:#1f497d"> <br>
</span><span style="font-size:9.0pt;font-family:"Century Gothic","sans-serif";color:#595959">PO Box 91824 | Austin | Texas 78709-1824 | USA <br>Office: +1 888 612 8820 ext 02 | Fax: +1 866 304 3754<br>
Mobile: +1 267 984 3651</span><span style="color:#1f497d"></span></p><p class="MsoNormal"><span style="font-size:9.0pt;color:#595959"><img width="304" height="39" id="Picture_x0020_1" src="cid:image002.jpg@01CE4994.148D8710" alt="logo - small"></span><span style="color:#1f497d"></span></p>
</div></div></body></html>