mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-01 11:26:54 +00:00
Add a pre-specified log format
This commit is contained in:
parent
629f796fc1
commit
53d5f0e49a
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ def configure_logging(verbosity, filename=None):
|
|||
else:
|
||||
handler = logging.FileHandler(filename)
|
||||
|
||||
handler.setFormatter(
|
||||
logging.Formatter('%(asctime)s %(levelname)s %(message)s')
|
||||
)
|
||||
LOG.addHandler(handler)
|
||||
LOG.setLevel(log_level)
|
||||
LOG.debug('Added a %s logging handler to logger root at %s',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue