Index: src/site/xdoc/manual/layouts.xml.vm IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/site/xdoc/manual/layouts.xml.vm (date 1475431991000) +++ src/site/xdoc/manual/layouts.xml.vm (revision ) @@ -1403,9 +1403,9 @@ - X{key[,key2...]}
- mdc{key[,key2...]}
- MDC{key[,key2...]} + X{key[,key2...]}[{defualtValue,[,defualtValue2...]}]
+ mdc{key[,key2...]}[{defualtValue,[,defualtValue2...]}]
+ MDC{key[,key2...]}[{defualtValue,[,defualtValue2...]}]

Outputs the Thread Context Map (also known as the Mapped Diagnostic Context or MDC) @@ -1417,7 +1417,8 @@ where clientNumber is the key. The value in the MDC - corresponding to the key will be output.

+ corresponding to the key will be output. if you add another {} after the keys it will act like default values, + if the key does not exist the default value will be writen. number of default values should be eqauls to numbers of keys.

If a list of keys are provided, such as %X{name, number}, then each key that is present in the ThreadContext will be output using the format {name=val1, number=val2}. The key/value pairs will be printed in the order they appear in the list.