spring - log4j2 中 xwEx 的含义?

标签 spring spring-boot configuration log4j log4j2

在 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/

相关文章:

java - 无法为 log4j 设置 LevelRangeFilter

java - 我可以在不使用 ehcache 的情况下使 spring 缓存过期吗

java - 简单的 spring boot web 应用程序不起作用,whitelabel 错误页面

java - Spring的LocalContainerEntityManagerFactoryBean可以在J2SE环境中使用吗?

java - 如何验证 List 类型的@RequestParam 的大小

XAMPP 中的 MySQL 事件调度程序

windows - Python - 在 Windows 中找不到 pip.ini 或 pip.conf

RestTemplate ConnectException 无法访问

javascript - Thymeleaf - 基于配置文件的 Spring Boot MVC 资源定位

ios - 如何让我的 iOS4.2 SDK 开发的代码与 iOS3.1.3 一起工作?