Reputation: 717
I'm trying to launch a Mule application I have written, but I cant seem to get the logs to show up when I run it from the console. When I look at the log file, I see the Mule loading process (assuming I am using the app not the service mode) but then the log goes blank. Note that the log is visible when I'm using Mule Eclipse IDE.
Upvotes: 1
Views: 5261
Reputation: 1
May be you have not properly placed the properties file and jar file.
Place "log4j.properties" in "WEB-INF/classes"
and copy
log4jx.y.z.jar to "WEB-INF/lib".
Upvotes: 0
Reputation: 172
Try to restart the entire machine. It sounds like an Eclipse problem not a problem with your program.
Upvotes: 0
Reputation: 1754
To properly log Mule messages into a log file, you should have a category definition in your log4j.properties and refer to that in your Mule flow as:
<logger level="INFO" category="your_custom_category" message="#[payload]"/>
Upvotes: 0
Reputation: 406
Sounds like your app logging configuration overrides the global one, but is also not doing what you expect. Add -M-Dlog4j.debug switch to the Mule command line to see where rogue log4j config file might be coming from.
Upvotes: 2