>From org.apache.logging.log4j.simple.SimpleLogger, line 147-151:

if (showContextMap) {
    final Map<String, String> mdc = ThreadContext.getContext();
    if (mdc.size() > 0) {
        sb.append(SPACE);
        sb.append(mdc.toString());
        sb.append(SPACE);
    }
}


Why not use ThreadContext.getImmutableContext() here?


-- 
[image: MagineTV]

 *Mikael Ståldal*
Senior backend developer

 *Magine TV*
 [email protected]
 Regeringsgatan 25  | 111 53 Stockholm, Sweden  |   www.magine.com

 Privileged and/or Confidential Information may be contained in this
message. If you are not the addressee indicated in this message
(or responsible for delivery of the message to such a person), you may not
copy or deliver this message to anyone. In such case,
you should destroy this message and kindly notify the sender by reply
email.
  • [no subject] Mikael Ståldal
    • Re: Gary Gregory
      • Re: Mikael Ståldal
        • Re: Gary Gregory
          • Re: Remko Popma

Reply via email to