From 8e2d8ec6f59fdd055a88a40d743782f4feaa8376 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Fri, 19 Feb 2016 18:58:42 -0600 Subject: [PATCH] Update the default log format --- flake8/__init__.py | 5 +++-- 1 file 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: