在 Spring Boot 2.1.2 中,在默认的 log4j2.xml
文件中,我注意到以下行:
<Property name="LOG_EXCEPTION_CONVERSION_WORD">%xwEx</Property>
我一整天都在寻找 %xwEx
转换模式的含义(是的,甚至是 Google 的第二页),但我无法理解出去。并且它没有列在 table of patterns 中在官方文档中。
这是什么意思?
最佳答案
非常感谢Christoph对于 answer on GitHub :
If I'm not mistaken this is a Spring-Boot specific converter plugin for log4j2. See ExtendedWhitespaceThrowablePatternConverter:
@Plugin(name = "ExtendedWhitespaceThrowablePatternConverter", category = PatternConverter.CATEGORY) @ConverterKeys({ "xwEx", "xwThrowable", "xwException" }) public final class ExtendedWhitespaceThrowablePatternConverter extends ThrowablePatternConverter { // .... }
As I'm not a team member don't take this for granted though.
Cheers, Christoph
关于spring - log4j2 中 xwEx 的含义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54612197/