How can I get the configuration from a specific file like '/opt/applications/app1/log/config/log4j2.xml' for a mule application in mule 3.6.2. The common way is to get the configuration from a config file log4j2.xml which is stored in the resource folder, we need to read this configuration file from other external path.
相关问题
- slf4j-log4j converts objects to string before pass
- Understand Ring Buffer in async Logger
- How to filter an array of JSON in Mule DataWeave
- Mule processing strategies - call async private fl
- [javax.xml.bind.UnmarshalException: unexpected ele
相关文章
- Log4j 2 hangs when creating logger
- Log4j2 using {} against using %d or %s
- How to implement Mule HTTP GET Method redirect?
- convert xml to soap request using xslt transformat
- How to convert SOAP web service to REST web servic
- Log4j2 not working in WebLogic 12.2.1
- Spring3 Dependency Injection not working with mule
- Singleton Startup Mule Component/Flow
By default, Mule use its own log4j2 file for logging. To read log4j2.xml configuration file from external path, add the next beans in your file Application Context, For that specify the external file to be used in the context General of Mule.
Application Context:
Then you need to import this context from your file Mule flow, with:
Mule Config