logback icon indicating copy to clipboard operation
logback copied to clipboard

LOGBACK-1337 LogbackMDCAdapter should store mdc in LinkedHashMap to predict order of MDC in %X

Open motlin opened this issue 6 years ago • 6 comments

motlin avatar Dec 04 '19 00:12 motlin

Hi Craig, So the idea is to iterate over the keys in the order of insertion. Correct?

ceki avatar Dec 04 '19 17:12 ceki

That's right! I noticed that MDC iteration order is pseudorandom when working with logstash/logstash-logback-encoder. This surprised me a bit so I searched to see if anyone had written about it and I found LOGBACK-1337.

motlin avatar Dec 05 '19 12:12 motlin