<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Apologies, failed to put in a link to said PR: <a href="https://github.com/qos-ch/slf4j/pull/239" >https://github.com/qos-ch/slf4j/pull/239</a></div>
<div dir="ltr" > </div>
<div dir="ltr" >Anastas</div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Anastas Stoyanovsky/Pittsburgh/IBM<br>To: slf4j-dev@qos.ch<br>Cc:<br>Subject: Re: SLF4J-168 Numeric Values in MDC for SLF4J 2.0<br>Date: Thu, Jun 25, 2020 11:34 AM<br> 
<div dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Hello,</div>
<div dir="ltr" > </div>
<div dir="ltr" >Following up on this, I've submitted a PR to the 2.0 branch with the change to allow the logging of numeric values when using MDC. Is that the correct branch? Is this something that would be considered for SLF4J 2.0?</div>
<div dir="ltr" > </div>
<div dir="ltr" >Thank you,</div>
<div dir="ltr" >Anastas</div>
<div dir="ltr" > </div>
<div dir="ltr" > </div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Anastas Stoyanovsky/Pittsburgh/IBM<br>To: slf4j-dev@qos.ch<br>Cc:<br>Subject: SLF4J-168 Numeric Values in MDC for SLF4J 2.0<br>Date: Thu, Apr 2, 2020 4:17 PM<br> 
<div dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10pt" ><div dir="ltr" >Hello,</div>
<div dir="ltr" > </div>
<div dir="ltr" >I'm new to this list so I hope I'm not breaking any protocols.</div>
<div dir="ltr" > </div>
<div dir="ltr" >I searched through the mailing list about the topic of MDC supporting only string values, and came across SLF4J-168: <a href="https://jira.qos.ch/projects/SLF4J/issues/SLF4J-168?filter=allopenissues" target="_blank" >https://jira.qos.ch/projects/SLF4J/issues/SLF4J-168</a> </div>
<div dir="ltr" > </div>
<div dir="ltr" >To have the ability to log numeric (and generally non-string) values, as is possible with Logback, would be of great use. I do cloud development; the ability to aggregate on numeric values in JSON logs in tools like Kibana is essential to our work. This precludes us from using SLF4J, since MDCs can only have string values. Being able to use SLF4j would allow the usage of shared libraries across different services written by different teams that use different logging providers without having to rewrite large amounts of legacy code.</div>
<div dir="ltr" > </div>
<div dir="ltr" >I see that there is a v2.0.0.-alpha1 release on Oct 1, 2019. Is 2.x under active development? Would it be possible to consider generalizing MDCs to internally use a Map<String, Object> instead of a Map<String, String>?</div>
<div dir="ltr" > </div>
<div dir="ltr" >As that would be a breaking change, this seems like a rare opportunity to do this. This is something we would happily contribute.</div>
<div dir="ltr" > </div>
<div dir="ltr" >Thank you,</div>
<div dir="ltr" >Anastas Stoyanovsky</div>
<div dir="ltr" >Software Architect</div>
<div dir="ltr" >IBM Watson</div></div></blockquote>
<div dir="ltr" > </div></div></blockquote>
<div dir="ltr" > </div></div><BR>