log4j2中的增强型Throwable Renderer [英] Enhanced Throwable Renderer in log4j2

查看:268
本文介绍了log4j2中的增强型Throwable Renderer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

log4j2中是否有等效的Enhanced Throwable Renderer类(在log4j1中存在)?我正在将库迁移到log4j2,但在log4j2中看不到支持此功能.感谢您的帮助.

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.

推荐答案

在log4j2中, PatternLayout 具有许多选项,例如%ex{option}%rEx{option}%xEx{option},我怀疑它们具有相同的功能或比增强型Throwable Renderer更多的功能.

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.

这篇关于log4j2中的增强型Throwable Renderer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆