Enable color in logged messages

When standard output is a TTY, logged messages are colored.