Hi. Thanks for the advice, but it still is not working. My activemq.log file gets created, but remains empty throughout the runtime of the application.
Here is the output I get when I run the project with -Dlog4j.debug in the jvm start command: log4j: Trying to find [log4j.xml] using context classloader sun.misc.Launcher$AppClassLoader@11b86e7. log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@11b86e7 class loader. log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource(). log4j: Trying to find [log4j.properties] using context classloader sun.misc.Launcher$AppClassLoader@11b86e7. log4j: Using URL [file:/MY_DIRECTORY/build/classes/log4j.properties] for automatic log4j configuration. log4j: Reading configuration from URL file:/MY_DIRECTORY/build/classes/log4j.properties log4j: Parsing for [root] with value=[INFO, logfile]. log4j: Level token is [INFO]. log4j: Category root set to INFO log4j: Parsing appender named "logfile". log4j: Parsing layout options for "logfile". log4j: Setting property [conversionPattern] to [%d [%-15.15t] %-5p %-30.30c{1} -]. log4j: End of parsing for "logfile". log4j: Setting property [maxFileSize] to [1024KB]. log4j: Setting property [append] to [true]. log4j: Setting property [file] to [C:/OUTPUT_DIRECTORY/logs/activemq.log]. log4j: Setting property [maxBackupIndex] to [5]. log4j: setFile called: C:/OUTPUT_DIRECTORY/logs/activemq.log, true log4j: setFile ended log4j: Parsed "logfile" options. log4j: Parsing for [org.apache.activemq] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.apache.activemq set to INFO log4j: Handling log4j.additivity.org.apache.activemq=[null] log4j: Parsing for [org.apache.activemq.spring] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.apache.activemq.spring set to INFO log4j: Handling log4j.additivity.org.apache.activemq.spring=[null] log4j: Parsing for [org.springframework] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.springframework set to INFO log4j: Handling log4j.additivity.org.springframework=[null] log4j: Parsing for [org.apache.xbean.spring] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.apache.xbean.spring set to INFO log4j: Handling log4j.additivity.org.apache.xbean.spring=[null] log4j: Parsing for [org.apache.camel] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.apache.camel set to INFO log4j: Handling log4j.additivity.org.apache.camel=[null] log4j: Parsing for [org.apache.activemq.transport.InactivityMonitor] with value=[INFO]. log4j: Level token is [INFO]. log4j: Category org.apache.activemq.transport.InactivityMonitor set to INFO log4j: Handling log4j.additivity.org.apache.activemq.transport.InactivityMonitor=[null] log4j: Finished configuring. However, this only provides me with logging that I am manually doing in the code, i.e. myLogger.error(""). This does not log to file the output that is generated by the broker or any other general activemq output. Is there something that I need to to in code as well for this to be activated? Regards, Oli -- View this message in context: http://activemq.2283324.n4.nabble.com/Logging-with-ActiveMQ-and-Log4j-tp3411709p3414384.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.