Use logger instead of stdout and stderr
Merge remote-tracking branch 'james/logger'