骡子抑制捕获异常策略记录

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)

Nik*_*kos 1

我不这么认为 Mule 3.3.1。Mule 3.4.0应该支持它,你可以试试吗?

https://www.mulesoft.org/jira/browse/MULE-6575