diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-02-19 18:58:42 -0600 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-02-19 18:58:42 -0600 |
| commit | 8e2d8ec6f59fdd055a88a40d743782f4feaa8376 (patch) | |
| tree | 3918455dd3274abcd588a46db98022dfb2648e78 | |
| parent | 98357e71db4591ecf9e74321608def35125aa40d (diff) | |
| download | flake8-8e2d8ec6f59fdd055a88a40d743782f4feaa8376.tar.gz | |
Update the default log format
| -rw-r--r-- | flake8/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/flake8/__init__.py b/flake8/__init__.py index 8e32938..416c951 100644 --- a/flake8/__init__.py +++ b/flake8/__init__.py @@ -37,9 +37,10 @@ _VERBOSITY_TO_LOG_LEVEL = { 2: logging.DEBUG, } +LOG_FORMAT = '[flake8] %(asctime)s %(levelname)s %(message)s' -def configure_logging(verbosity, filename=None, - logformat='%(asctime)s %(levelname)s %(message)s'): + +def configure_logging(verbosity, filename=None, logformat=LOG_FORMAT): """Configure logging for flake8. :param int verbosity: |
