问题描述
是否等同于log4j2中的增强型抛光渲染器类(在log4j1中存在)?我正在将库迁移到log4j2,但我看不到Log4J2中支持此功能.任何帮助都将不胜感激.
推荐答案
在log4j2中,我怀疑有许多选项,例如%ex{option},%rEx{option}或%xEx{option},其功能或超过增强的可抛光渲染器.
问题描述
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.