Enhanced Throwable Renderer in log4j2

ぐ巨炮叔叔 提交于 2019-12-11 08:19:48

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/29265634/enhanced-throwable-renderer-in-log4j2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!