naparuba/shinken — pull request #531 by xkilian (2012-08-20 20:16:01+00:00)
Title: Enh: Logging normalization to use logger module

- Use logger module (convert from print to logger.level)
- Convert logger.log calls to logger.level
- Fix bug from properties coming for INI file, which was converted to INT and then reconverted to string in arbiter.py, daemon.py and config.py. (Unfortunately it is split in two commits)
- Remove log_mgr variables in modules
- Force log level to WARNING in daemon ini files, daemon.py, config.py and log.py.
- Update test_logging.py
- Comments, typos, docstrings
- Format log output: level is padded with spaces to 8 characters, making it easier to read with monospace fonts, at the cost of a few bytes. This does not affect status, commands, etc. It only touches the log level.
- Add new function to log.py to expose the current effective log level of the logger instance. Easier to test.