Hi All,
In the source code for PatternLayout.java in
logback.classic the following lines for the rules for the context name pattern
are present (I assume that 'cn' is a shorthand for the context name):
115
defaultConverterMap.put("cn", ContextNameAction.class.getName());
116
defaultConverterMap.put("contextName",
ContextNameConverter.class.getName());
This seems to be at odds with all the other rules for
patterns. Either:
a) i) The 'cn' pattern is not about the
context name, if so then what does stand for?
ii) Why does the class name indicate
inheritance from a Joran Action rather than a Converter?
Or
b) The lines should be the following which is
typical of other pattern rules:
115
defaultConverterMap.put("cn", ContextNameConverter.class.getName());
116
defaultConverterMap.put("contextName",
ContextNameConverter.class.getName());
Could you please clarify.
Thanks in advance,
Brett
--
Brett Walker <brett.walker@geometryit.com>
Software Developer / Analyst
Geometry Pty Ltd
|