Skip to content
Snippets Groups Projects
Commit cbb341206b06 authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:sparkles: add library to have colored logs

parent 80c8f8a25f42
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@
Fix missing PyYAML dependency.
Colored logs.
4.1
---
......
......@@ -4,6 +4,8 @@
import logging
from typing import Optional
import coloredlogs
def add_verbosity_to_parser(parser: argparse.ArgumentParser):
parser.add_argument(
......@@ -23,9 +25,8 @@
level = logging.INFO
else:
level = logging.DEBUG
logging.basicConfig(
level=level,
format="%(asctime)s %(levelname)8s [%(lineno)3d]: %(message)s",
coloredlogs.install(
level, fmt="%(asctime)s %(levelname)8s %(name)s %(message)s"
)
......
......@@ -3,6 +3,7 @@
requests_toolbelt==0.8.0
python-dateutil>=2.7.0
PyYAML
coloredlogs
docker
psycopg2
mercurial >=5.2
......
......@@ -15,6 +15,7 @@
"odoorpc==0.7.0",
"requests_toolbelt==0.8.0",
"python-dateutil>=2.7.0",
"coloredlogs",
"PyYAML",
],
extras_require={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment