Make sure logging works if stdout is a tty