<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi,</div>
<div style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
we often need to change log level thresholds to investigate a problem in a running system. Right now, we do that by using<br>
<pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'JetBrains Mono',monospace;font-size:11.3pt"><span style="color:#9876aa;font-style:italic"><</span><span style="color:#e8bf6a">configuration  </span><span style="color:#bababa">scan</span><span style="color:#6a8759">="true" </span><span style="color:#bababa">scanPeriod</span><span style="color:#6a8759">="30 seconds"</span><span style="color:#9876aa;font-style:italic">></span></pre>
and then editing the logback.xml file by hand (i.e. using a text editor or Sed or Perl).  I wonder if there is a better way to accomplish this.  I know that we can e.g. use</div>
<div style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<pre><span>  </span><span><root</span><span> </span><span>level</span><span>=</span><span>"${rootLevel}"</span><span>/></span><span><br></span></pre>
but what I do not yet understand is:</div>
<div style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li><span>Can I modify the value if this variable via some Java API from within my application?</span></li><li><span>Do we still need the <code>scan="true"</code>​ attribute or will the "rootLevel" variable be evaluated every time the logger is used?</span></li><li><span>Is there a measurable performance impact by using variables in that manner?<br>
</span></li></ol>
</div>
<div>
<div style="font-family: Tahoma, Geneva, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div></div>
<div></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Tahoma,Geneva,sans-serif">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><span lang="en-US">
<div style="margin:0" align="justify"><font size="2" face="Arial,sans-serif"><span style="font-size:10pt"><font size="3" face="Calibri,sans-serif" color="#17365D"><span style="font-size:12pt"></nk><br>
<br>
---<br>
</span></font></span></font></div>
<div style="margin:0" align="justify"><font size="2" face="Arial,sans-serif"><span style="font-size:10pt"><font size="3" face="Calibri,sans-serif" color="#17365D"><span style="font-size:12pt"><br>
</span></font></span></font></div>
<div style="margin:0" align="justify"><font size="2" face="Arial,sans-serif"><span style="font-size:10pt"><font size="3" face="Calibri,sans-serif" color="#17365D"><span style="font-size:12pt">
<div>
<table style="font-family:Calibri,Verdana,Arial,sans-serif; color:#808288; font-size:11px; text-align:left" width="500" height="125" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="2" valign="top" height="8" align="left">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#FFFFFF" align="left"><br>
</td>
</tr>
</tbody>
<tbody>
<tr>
<td style="padding-left:5px; padding-top:20px">
<table width="100%">
<tbody>
<tr>
<td width="30%" align="center"><a href="http://www.metricstream.com/" target="_blank"><img alt="MetricStream" width="180" src="https://assets.metricstream.com/lp/meticstream-email-signature-logo.png"></a></td>
<td style="padding-left:20px" width="70%">
<table width="100%">
<tbody>
<tr>
<td colspan="4" style="border-bottom:1px solid #10052F; padding-top:5px; color:#10052F; font-size:18px; padding-bottom:10px">
Norbert Kiesel | <span style="color:#5e6064; font-size:14px; margin:0; padding:0; font-weight:100">
Chief Architect</span></td>
</tr>
<tr>
<td colspan="4" style="padding:10px 0" width="100%">
<table width="100%">
<tbody>
<tr>
<td style="color:#5e6064; font-size:13px; line-height:16px" width="5%" align="left">
<img alt="" width="17" align="absmiddle" src="https://assets.metricstream.com/lp/email-signature-mail-icon-grey.png"></td>
<td style="color:#10052F; font-size:14px; line-height:16px; padding-left:3px" width="95%" align="left">
<a href="mailto:nkiesel@metricstream.com" style="color:#5e6064">nkiesel@metricstream.com</a></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="color:#FFFFFF; font-size:13px; line-height:16px" width="5%" align="left">
<img alt="" width="13" align="absmiddle" src="https://assets.metricstream.com/lp/email-signature-mobile-icon-grey.png"></td>
<td style="color:#10052F; font-size:14px; line-height:16px; padding-left:3px" width="30%" align="left">
+1-650-620-2955</td>
<td style="color:#10052F; font-size:14px; line-height:16px" width="5%" align="left">
<img alt="" width="17" align="absmiddle" src="https://assets.metricstream.com/lp/email-signature-phone-icon-grey.png"></td>
<td style="color:#5e6064; font-size:14px; line-height:16px; padding-left:3px" width="60%" align="left">
+1-650-620-2955</td>
</tr>
<tr>
<td colspan="4">
<table width="100%">
<tbody>
<tr>
<td width="30%">
<table align="left">
<tbody>
<tr>
<td style="color:#10052F; font-size:16px; padding-top:5px; padding-bottom:5px; padding-right:10px" align="center">
<a href="https://www.metricstream.com/" target="_blank">www.metricstream.com</a></td>
</tr>
</tbody>
</table>
</td>
<td width="30%" align="left">
<table width="100%" align="center">
<tbody>
<tr>
<td width="25"><a href="https://www.linkedin.com/company/metricstream" target="_blank"><img alt="Linkedin" width="20" src="https://assets.metricstream.com/lp/meticstream-email-signature-linkdien-AQUAMARINE.png"></a></td>
<td width="5"> </td>
<td width="25"><a href="https://twitter.com/metricstream" target="_blank"><img alt="Facebook" width="20" src="https://assets.metricstream.com/lp/meticstream-email-signature-twitter-AQUAMARINE.png"></a></td>
<td width="5"> </td>
<td width="25"><a href="https://www.facebook.com/MetricStream" target="_blank"><img alt="Twitter" width="20" src="https://assets.metricstream.com/lp/meticstream-email-signature-facebook-AQUAMARINE.png"></a></td>
<td width="5"> </td>
<td width="25"><a href="https://www.youtube.com/user/MetricStream" target="_blank"><img alt="youtube" width="20" src="https://assets.metricstream.com/lp/meticstream-email-signature-youtubd-AQUAMARINE.png"></a></td>
</tr>
</tbody>
</table>
</td>
<td width="30%" align="left"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="2"><img alt="" width="610" src="https://assets.metricstream.com/lp/meticstream-email-signature-stream-bg.png"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="color:#808288; font-size:1em; padding-top:10px; line-height:16px; padding-left:5px; font-family:Calibri,Verdana,Arial,sans-serif" width="75%" valign="top">
<span style="font-family:Calibri,Verdana,Arial,sans-serif; color:#0b6eb9; font-size:16px"></span><br>
</td>
<td style="font-family:Calibri,Verdana,Arial,sans-serif; color:#006eb8; padding-bottom:5px" width="25%" valign="bottom" align="center">
<br>
</td>
</tr>
<tr>
<td colspan="2" valign="top" align="right">
<table width="100%" height="5" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td width="100%" valign="top" bgcolor="#FFFFFF" align="right"><br>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</span></font></span></font><font size="2" face="Arial,sans-serif"><span style="font-size:10pt"><font size="3" face="Calibri,sans-serif" color="#17365D"><span style="font-size:12pt"></span></font></span></font></div>
</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>