Separate logger output into stderr/stdout.
Add logging to file, daily rotating files.
Work around a Python 2.6 issue.