Friday, September 26, 2008

Using syslog with Traffic Control

The file you need to edit is /opt/TrafficControl/conf/log.conf

If you want to direct the Traffic Control log into syslog as well then you can change

  log4perl.logger.traffic_logger     = INFO, TrafficLogfile


to

  log4perl.logger.traffic_logger     = INFO, TrafficLogfile, Syslog



You can also append ", Syslog" onto the end of the other logs if you wish.

  log4perl.logger.error_logger       = ERROR, ErrorLogfile

  log4perl.logger.debug_logger       = FATAL, DebugLogfile


Once the file is edited you can call reload-proxy.sh

  sudo /opt/TrafficControl/scripts/reload-proxy.sh