<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.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><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
Thanks for the reply.  I use that approach for other areas of my app.  I was hoping to be able to disable MDC inheritance so it doesn't impact other areas of my app where I can't manage the lifecycle of other thread pools. 
<br>
<br>
Really, if your managing the propagation of the MDC yourself, it would be nice to opt out of the inheritance mechanism.<br>
<br>
Anyone figure out how to get around this?<br>
<br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Logback-user <logback-user-bounces@qos.ch> on behalf of Paul Krause <pkrause@investsoftech.com><br>
<b>Sent:</b> Monday, August 31, 2015 5:34:27 PM<br>
<b>To:</b> logback users list<br>
<b>Subject:</b> Re: [logback-user] Any way to turn off MDC inheritance?</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">If you know what information you want to keep and what you want to discard, then you should be able use MDC.getCopyOfContextMap() and MDC.setContextMapValues()
 to clean up the MDC.  But you’ll need to figure out when to call them based on the API that the thread-pool exposes to you.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Logback-user [mailto:logback-user-bounces@qos.ch]
<b>On Behalf Of </b>White, Joshua A A6IT<br>
<b>Sent:</b> Monday, August 31, 2015 5:21 PM<br>
<b>To:</b> logback-user@qos.ch<br>
<b>Subject:</b> [logback-user] Any way to turn off MDC inheritance?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black">Hello,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black">I am using logback version 1.1.3.   I have a situation where the MDC is getting copied over to thread pools that I don’t manage and filling my logs with log statements
 that contain MDC information that is no longer valid.  Because I don’t manage these thread pools, I am not able to copy the correct values to that thread pool when threads get used/re-used).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black">Does anyone have a solution for this problem?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black">-Joshua<o:p></o:p></span></p>
</div>
<p><span style="font-size:10.5pt;font-family:"Calibri",sans-serif;color:black">------------------------------------------------------------------------------<br>
CONFIDENTIALITY NOTICE: If you have received this email in error,<br>
please immediately notify the sender by e-mail at the address shown.  <br>
This email transmission may contain confidential information.  This <br>
information is intended only for the use of the individual(s) or entity to <br>
whom it is intended even if addressed incorrectly.  Please delete it from <br>
your files if you are not the intended recipient.  Thank you for your <br>
compliance.  Copyright (c) 2015 Cigna<br>
==============================================================================<o:p></o:p></span></p>
</div>
</div>
<p>------------------------------------------------------------------------------<br>
CONFIDENTIALITY NOTICE: If you have received this email in error,<br>
please immediately notify the sender by e-mail at the address shown.  <br>
This email transmission may contain confidential information.  This <br>
information is intended only for the use of the individual(s) or entity to <br>
whom it is intended even if addressed incorrectly.  Please delete it from <br>
your files if you are not the intended recipient.  Thank you for your <br>
compliance.  Copyright (c) 2015 Cigna<br>
==============================================================================</p></body>
</html>