简体   繁体   中英

Change Log location in ActiveMQ 5.15.0

I have downloaded and setup ActiveMQ 5.15.0 in my machine and followed this guide .

I see that the logs location is in apache-activemq-5.15.0-bin\apache-activemq-5.15.0\data\activemq.log .

How do I change the location of this log file \data to a different file system?

ActiveMQ "Classic" 5.15.0 uses Log4j 1.x for logging, and the logging configuration is in conf/log4j.properties . See this line for the location of the main activemq.log file:

log4j.appender.logfile.file=${activemq.data}/activemq.log

You can change this to whatever path you like.

It's worth noting that ActiveMQ "Classic" 5.15.0 was released in June of 2017 (ie over 5 years ago now). I strongly recommend you upgrade to a more recent release, ideally the latest .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM