Introduce generic logging infrastructure
authorRalf Ertzinger <ralf@skytale.net>
Sat, 1 Mar 2014 18:20:33 +0000 (19:20 +0100)
committerRalf Ertzinger <ralf@skytale.net>
Sat, 1 Mar 2014 18:20:33 +0000 (19:20 +0100)
commitf8c7907cd660d3e11a8b80ad85e18ff034ff297a
tree3c7096060ef93ccfc891dd8ae855cce820005190
parentc873b2df604fe91a6a6a49846140bdd6bfff81cc
Introduce generic logging infrastructure

Start using the python logging module to handle output and log
messages. A single logger named 'time-slider' is used from the
main program and all modules.

All direct calls to sys.stderr.write are moved to .error
calls on the respective logger.

When running in foreground mode all log messages are sent to
stdout, when running in background mode all log messages are
sent to syslog.
usr/share/time-slider/lib/time_slider/timesliderd.py