ule子:如何在记录器中打印文件名? [英] Mule: How to print the file name in logger?

查看:101
本文介绍了ule子:如何在记录器中打印文件名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要打印m子配置文件的名称,在流程的记录器中,如何获取?

I want to print the mule configuration file name, in the logger in the flow, how can I get it?

假设test.xml中的配置文件名里面有一个记录器,该记录器显示 test.xml ,我怎么能得到这个?

Suppose the configuration file name in test.xml, inside that a flow is having logger, which prints test.xml, how can I get this?

<flow name="filenameFlow">
    <http:listener config-ref="HTTP_Listener_Configuration" path="/Hello" doc:name="HTTP"/>
    <logger message="#[app.name.toString()]" level="INFO" doc:name="Logger"/>
</flow>

推荐答案

#[message.outboundproperties[originalFilename]]

尝试使用此表达式.

这篇关于ule子:如何在记录器中打印文件名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆