Reputation: 499
I have a Mule project that I want to run from AnypointStudio. It uses the default log4j2.xml, but I want to change that.
According to the documentation (http://www.mulesoft.org/documentation/display/current/Logging+in+Mule), it is posible to put another log4j2.xml file on the classpath, but that does not work.
In the "run configuration" of Anypoint I added a classpath. In that classpath folder I added another log4j2.xml file, but that is ignored by the Mule, although it sees another file in that folder.
How do I add an log4j2.xml file?
Upvotes: 0
Views: 175
Reputation: 33413
Put your log4j2.xml
config in src/test/resources
, that way it won't be packaged in the app but will be available in Studio, when you launch the app.
Upvotes: 2