We have various mule applications deployed on our Mule 3.6.4 server all with their own log4j configuration defined in the classpath of the application as seen below. (example of 1)
<?xml version="1.0" encoding="utf-8"?>
<Configuration>
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="<%-4d{DATE}> <%-5p> <%t> <%m> %n" />
</Console>
<RollingFile name="file"
fileName="${sys:mule.home}/logs/apptest.log"
filePattern="${sys:mule.home}/logs/apptest.%d{yyyy-MM-dd}">
<PatternLayout
pattern="<%-4d{DATE}> <%-5p> <%t> <%m> %n" />
<TimeBasedTriggeringPolicy />
</RollingFile>
</Appenders>
<Loggers>
<AsyncRoot level="INFO">
<AppenderRef ref="console" />
<AppenderRef ref="file" />
</AsyncRoot>
</Loggers>
</Configuration>
And these apps are deployed in this Order in Mule ESB
Application1 Application2 Appplication3
For some reason all the logging for the applications is outputting to the console and only the log file for Application 3. The logging isn't working for Application 1 or 2?
Anyone able to shed any light on this? Is this some classloader issue? We are running Mule 3.6.4
Thanks