Ben Randall 7d43ad6a37 Colorlog windows fix (#13929)
* Fix colorlog on windows

Modified the way logging is initialized to fix two things.
1. If the import of `colorlog` fails the logs will still be formatted
   using the expected HASS log format.
2. Ensure that `logging.basicConfig` is called AFTER `colorlog` is
   imported so that the default handler generated will be writing to the
   wrapped stream generated when `colorama` is initialized.  This allows
   colored logging to work on Windows.

Added support for a `--log-no-color` command line switch in the event
that someone just wants to disable colored log output entirely.

* Fix line lengths

* Switch default value
2018-04-18 10:18:44 -04:00
..
2018-02-17 10:29:14 +01:00
2018-01-30 14:44:05 -08:00
2018-03-31 23:20:58 +02:00
2018-01-15 14:24:12 -08:00
2018-02-07 17:23:10 +01:00
2018-03-28 08:27:56 +02:00
2018-04-18 10:18:44 -04:00