mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 06:44:18 +00:00
Better log format
This commit is contained in:
parent
4c797c9ff7
commit
2c17b4342f
1 changed files with 2 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ _VERBOSITY_TO_LOG_LEVEL = {
|
||||||
2: logging.DEBUG,
|
2: logging.DEBUG,
|
||||||
}
|
}
|
||||||
|
|
||||||
LOG_FORMAT = '[flake8] %(asctime)s %(levelname)s %(message)s'
|
LOG_FORMAT = ('[%(name)-25s]:%(threadName)s %(relativeCreated)6d '
|
||||||
|
'%(levelname)-8s %(message)s')
|
||||||
|
|
||||||
|
|
||||||
def configure_logging(verbosity, filename=None, logformat=LOG_FORMAT):
|
def configure_logging(verbosity, filename=None, logformat=LOG_FORMAT):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue