support print logs on non-tty output