armooo/cloudprint — pull request #42 by benze (2013-01-13 05:52:12+00:00)
Title: Use logger module to allow logging to syslog instead of stdout

Have replaced almost all calls to "print" with calls to logger.info / logger.error. When started in daemon mode, logger is appended with syslog handler to push all logging to the syslog object. Otherwise, logger is appended with stdout handler.

This gives me the ability to log all cloudprint activity to my syslog when run in a daemon mode, or see everything on stdout if running in non-daemon mode.

Replace all prints with calls to logger module