log4j2中增强的可抛物渲染器[英] Enhanced Throwable Renderer in log4j2

本文是小编为大家收集整理的关于log4j2中增强的可抛物渲染器的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

是否等同于log4j2中的增强型抛光渲染器类(在log4j1中存在)?我正在将库迁移到log4j2,但我看不到Log4J2中支持此功能.任何帮助都将不胜感激.

推荐答案

在log4j2中,我怀疑有许多选项,例如%ex{option},%rEx{option}或%xEx{option},其功能或超过增强的可抛光渲染器.

本文地址:https://www.itbaoku.cn/post/1575109.html

问题描述

Is there an equivalent of Enhanced Throwable Renderer class ( which was present in log4j1 ) in log4j2 ? I am migrating a library to log4j2 and I don't see this feature supported in log4j2. Any help is appreciated.

推荐答案

In log4j2, the PatternLayout has many options like %ex{option}, %rEx{option} or %xEx{option} that I suspect have the same functionality or more than Enhanced Throwable Renderer.