Redirect stdout / stderr to logging module
Closed this issue · 1 comments
parente commented
Redirect stdout and stderr to the Python logging module. When running as a daemon, require a filename on the command line for the log file. When running foreground, log to stdout. Use logging module internally instead of print for permanent messages.
Pete will do this in JSonic first. Then we can just reuse.
gbishop commented
I have implemented this in torongo by connecting the logging module already used in tornado to syslog.