Initial commit

This commit is contained in:
jld3103 2021-08-04 18:36:37 +02:00
commit f9ba5a3cfd
14 changed files with 889 additions and 0 deletions

23
logger.py Normal file
View file

@ -0,0 +1,23 @@
import click
import logging
import sys
def setup_logging(verbose: bool):
level = logging.INFO
if verbose:
level = logging.DEBUG
logging.basicConfig(
stream=sys.stdout,
format='%(asctime)s %(levelname)s: %(message)s',
datefmt='%m/%d/%Y %H:%M:%S',
level=level
)
verbose_option = click.option(
'-v',
'--verbose',
is_flag=True,
help='Enables verbose logging'
)