Tad*_*Tad 5 logging exception mule
有没有办法抑制Mule的(3.3.1)catch-exception-strategy行为记录组件的特定实例的整个堆栈跟踪?我不想在类的log4j配置中这样做,因为我想要记录意外的异常.
我希望能够在流程中捕获异常并决定是否记录它(并吓跑操作团队)或者只是采取纠正措施并继续前进.在下面,是否有一些方法可以将第一个实例配置为不记录堆栈跟踪?
<choice-exception-strategy>
<catch-exception-strategy when="exception.causedBy(my.exception.SpecificException)">
<!-- I don't want logging on this one -->
</catch-exception-strategy>
<catch-exception-strategy>
<!-- I do want it here -->
</catch-exception-strategy>
</choice-exception-strategy>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1119 次 |
最近记录: |