MoienGK
MoienGK

Reputation: 4654

How Can I acquire Mules Logger Instance In Spring Bean?

I understand that there is a built in log4j instance and configuration inside Mule ESB, is there any way to acquire that exact instance from within the associated Spring Bean so that i can log into the same file that mule use (the file inside Mule-standalone\logs) ?

thank you

Upvotes: 0

Views: 94

Answers (1)

Pontus Ullgren
Pontus Ullgren

Reputation: 705

Simply use the log4j or slf4j api inside your spring bean and, since it is loaded in the mule context, the same logging settings will be used.

Upvotes: 1

Related Questions