|
25 | 25 | import ch.qos.logback.core.pattern.parser.Parser;
|
26 | 26 |
|
27 | 27 | /**
|
28 |
| - * <p> |
29 | 28 | * A flexible layout configurable with pattern string. The goal of this class is
|
30 |
| - * to {@link #format format} a {@link ILoggingEvent} and return the results in a |
31 |
| - * {#link String}. The format of the result depends on the <em>conversion |
| 29 | + * to format a {@link ILoggingEvent} and return the results in a |
| 30 | + * {@link String}. The format of the result depends on the <em>conversion |
32 | 31 | * pattern</em>.
|
33 | 32 | * <p>
|
34 |
| - * For more information about this layout, please refer to the online manual at |
35 |
| - * http://logback.qos.ch/manual/layouts.html#PatternLayout |
36 |
| - * |
| 33 | + * For more information about this layout, please refer to |
| 34 | + * <a href="http://logback.qos.ch/manual/layouts.html#PatternLayout">the online manual</a>. |
37 | 35 | */
|
38 |
| - |
39 | 36 | public class PatternLayout extends PatternLayoutBase<ILoggingEvent> {
|
40 | 37 |
|
41 | 38 | public static final Map<String, String> DEFAULT_CONVERTER_MAP = new HashMap<String, String>();
|
@@ -73,6 +70,10 @@ public class PatternLayout extends PatternLayoutBase<ILoggingEvent> {
|
73 | 70 | DEFAULT_CONVERTER_MAP.put("thread", ThreadConverter.class.getName());
|
74 | 71 | CONVERTER_CLASS_TO_KEY_MAP.put(ThreadConverter.class.getName(), "thread");
|
75 | 72 |
|
| 73 | + DEFAULT_CONVERTER_MAP.put("tid", ThreadIdConverter.class.getName()); |
| 74 | + DEFAULT_CONVERTER_MAP.put("threadId", ThreadIdConverter.class.getName()); |
| 75 | + CONVERTER_CLASS_TO_KEY_MAP.put(ThreadIdConverter.class.getName(), "threadId"); |
| 76 | + |
76 | 77 | DEFAULT_CONVERTER_MAP.put("lo", LoggerConverter.class.getName());
|
77 | 78 | DEFAULT_CONVERTER_MAP.put("logger", LoggerConverter.class.getName());
|
78 | 79 | DEFAULT_CONVERTER_MAP.put("c", LoggerConverter.class.getName());
|
|
0 commit comments