Enhanced Throwable Renderer in 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. 回答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