summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-02-19 18:58:42 -0600
committerIan Cordasco <graffatcolmingov@gmail.com>2016-02-19 18:58:42 -0600
commit8e2d8ec6f59fdd055a88a40d743782f4feaa8376 (patch)
tree3918455dd3274abcd588a46db98022dfb2648e78
parent98357e71db4591ecf9e74321608def35125aa40d (diff)
downloadflake8-8e2d8ec6f59fdd055a88a40d743782f4feaa8376.tar.gz
Update the default log format
-rw-r--r--flake8/__init__.py5
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: