mirror of
https://github.com/ldericher/fftcgtool
synced 2025-01-15 15:02:59 +00:00
logging setup
This commit is contained in:
parent
281438613b
commit
8c1313da93
1 changed files with 5 additions and 5 deletions
|
@ -78,15 +78,15 @@ def main(ctx, **kwargs) -> None:
|
||||||
|
|
||||||
# set up logging
|
# set up logging
|
||||||
if kwargs["verbose"] == 0:
|
if kwargs["verbose"] == 0:
|
||||||
verbose = logging.WARN
|
log_level = logging.WARN
|
||||||
elif kwargs["verbose"] == 1:
|
elif kwargs["verbose"] == 1:
|
||||||
verbose = logging.INFO
|
log_level = logging.INFO
|
||||||
else:
|
else:
|
||||||
verbose = logging.DEBUG
|
log_level = logging.DEBUG
|
||||||
|
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
level=verbose,
|
level=log_level,
|
||||||
format="%(levelname)s: %(processName)s %(message)s",
|
format="%(levelname)s in %(name)s (#%(process)d): %(message)s",
|
||||||
)
|
)
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
Loading…
Reference in a new issue