borntyping/colorlog — pull request #1 by hozn (2012-12-09 18:48:21+00:00)
Title: Made some changes to constructor signature to support use from INI-style logging config

I would like to use your module on several projects, but want to be able have it work just using standard python logging config. (All of our projects at work are configured this way.) The current constructor signature precludes this, since the python logging framework will instantiate custom Formatter classes with two params: (fmt, datefmt).

So, I made some changes to accommodate this -- and also fixed a few things that appeared to be bugs/oversights:

- Added a datefmt param as second parameter, defaults to None, simply gets passed up to parent class constructor.
- Changed the reset param to default to True (to match what the README said and also that logic in the method) -- also added a default check for existing reset escape sequence termination.
- Updated the README to include mention of using the logging INI config that is now supported. Also fixed the example usage, since that format string did not work for me.

Hope that this makes sense and we can use a 1.4 (or whatever) version. Thanks!