Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使 ColoredConsoleAppender 只显示消息?
尽管%exception从 conversionPattern 中省略了异常消息和堆栈跟踪,但都显示了。如果无法通过配置完成,是否有一些方法可以覆盖?
%exception
事实证明,我现在知道这是可能的以及如何做到这一点:
Log4Net - 仅针对某些文件注销异常堆栈跟踪