log to stdout and stderr at the same time