Thursday, September 20, 2007

Mule Logging - How to specify a different location for the mule logs

bin/mule script

Create and export an environment variable pointing to your desired log location.

export LOG_DIR=/data/logs/your-desired-log-location

conf/wrapper.conf file

Refer to the environment variable exported in the mule script in the wrapper.logfile property in the wrapper.conf configuration file.

#********************************************************************
# Wrapper Logging Properties
#********************************************************************
......
# Log file to use for wrapper output logging.
wrapper.logfile=%LOG_DIR%/%MULE_APP%.log
......

No comments: