AlgoTraderAlgoTrader Documentation

Chapter 33. Logging

33.1. log4j2.xml
33.2. Production log4j2.xml

AlgoTrader logging is provided by Apache Log4j 2 framework. The Logging system is configured by means of log4j2.xml file.

The log level can be changed through the following VM argument:

-DlogLevel=ERROR

For production usage it is recommended to adapt the log4j2.xml to client specific needs. Additional sample log4j2.xml files are available on request for the following production level appenders


Note

  • Problems with the Email Appender go to System.err (on server see nohup.log)

  • To prevent saturation of the logs several loggers have been defined with a logging level higher than the root log level

Detailed description of Log4j2 appenders and advanced configuration can be found at the Apache Logging site.