Reputation: 31
I want to print the mule configuration file name, in the logger in the flow, how can I get it?
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>
Upvotes: -1
Views: 320
Reputation: 21
TO get the Mule configuration file name which contains your flow, use
You can also get the running flow name using #[flow.name] in the logger
Upvotes: 0