logback
logback copied to clipboard
LOGBACK-1337 LogbackMDCAdapter should store mdc in LinkedHashMap to predict order of MDC in %X
Hi Craig, So the idea is to iterate over the keys in the order of insertion. Correct?
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.