Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
12
tools/python/routing/src/logger.py
Normal file
12
tools/python/routing/src/logger.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import logging
|
||||
|
||||
formatter = logging.Formatter('%(asctime)s | %(levelname)s: %(message)s')
|
||||
|
||||
LOG = logging.getLogger('main_logger')
|
||||
|
||||
stream_handler = logging.StreamHandler()
|
||||
stream_handler.setFormatter(formatter)
|
||||
stream_handler.setLevel(logging.INFO)
|
||||
|
||||
LOG.addHandler(stream_handler)
|
||||
LOG.setLevel('INFO')
|
||||
Loading…
Add table
Add a link
Reference in a new issue