Closed hdahl closed 9 years ago
Comment #1 originally posted by soi-toolkit on 2014-01-23T12:20:20.000Z:
Is this reported as a bug in Mule Studio? Not picking up files under src/test/resources on the classpath must be treated as a bug, right?
Can src/test/resources be added manually to the classpath in Mule Studio as a workaround?
Comment #2 originally posted by soi-toolkit on 2014-01-23T16:28:46.000Z:
I'll try to clarify why I don't think this is a bug in MuleStudio:
Comment #3 originally posted by soi-toolkit on 2014-01-24T12:46:45.000Z:
But that should imply that we never ever could get test flows running with the Mule Studio launcher???
Then I find the whole concept failing...
Bug or not, I find it very important that we raise a feature request to be able to add on the test-parts to the classpath when required!
Comment #4 originally posted by soi-toolkit on 2014-02-23T15:25:07.000Z:
<empty>
From 2.0.0-M5 #386 the development-mode log4j.xml is in src/main/resources (logging to console) to handle running mule-apps in MuleStudio while still having control over logging. The production mode log4j.xml is in src/environment and is baked into the zip-deliverable at build time as before. The same goes for log4j2 config for Mule >= 3.6.0
Closing this ticket.
Original issue 362 created by soi-toolkit on 2014-01-23T11:41:44.000Z:
This relates to issue # 254 where a log4j.xml file for local/dev usage was put in src/test/resources to avoid that the dev-log-config ended up in the production log-config.
Background
MuleStudio 3.4 and onward (and probably any older version) does not pick up src/test/resources/log4j.xml when selecting "Run as Mule-application". Studio picks up log4j.xml or log4j.properties if put in src/main/resources, otherwise it falls back to using a log4j.properties bundled with the Studio mule-runtime.
Problem
The only way to control logging levels when running in Studio is to add a log4j.properties file to src/main/resources. This would be an extra step which is non-intuitive for many users.
Proposed solution
Drawbacks
We would have two log4j configuration formats.