Fixed file logging

log messages were still written to stdout/stderr
channels even if a logfile was set