BrightcoveOS/Diamond — pull request #56 by bclermont (2012-04-25 20:28:47+00:00)
Title: Switch to config-file based logging

Diamond currently assume that logging is always /var/log/diamond/diamond.log

What if a user want to:

* run as WARN level? only options are DEBUG and INFO
* have a custom collectors plugin and want to run only this collector as DEBUG and kept the rest as ERROR on a production server deployed from a debian/redhat package. (well you can always change code, if it's allowed)
* run diamond on a flash disk based appliance, with limited or no writeable space
* send all output to a centralized logging system, such as graylog2
* handle logging to syslogd

moving python logging configuration to the config file let you do this and offload logging configuration to logging python.