[logback-dev] [JIRA] (LOGBACK-1337) LogbackMDCAdapter should store mdc in LinkedHashMap to predict order of MDC in %X
noreply-jira at qos.ch
Thu Aug 24 05:32:00 CEST 2017
Martin Walsh created LOGBACK-1337:
Summary: LogbackMDCAdapter should store mdc in LinkedHashMap to predict order of MDC in %X
Issue Type: Improvement
Affects Versions: 1.2.3, 1.1.11
Reporter: Martin Walsh
Assignee: Logback dev list
LogbackMDCAdapter uses HashMap rather than LinkedHashMap and so the order of the key value pairs when logging MDC with %X cannot be predicted from one log line to another. This makes log parsing harder than it has to be.
Using LinkedHashMap would address this as the order of adding to MDC would be preserved.
This message was sent by Atlassian JIRA
More information about the logback-dev