feat: replace loguru with logging

This commit is contained in:
jo 2023-02-26 01:27:00 +01:00 committed by Kyle Robbertze
parent cced09f1ac
commit c6940db289
34 changed files with 138 additions and 245 deletions

View file

@ -3,8 +3,6 @@ from typing import Any, Callable, Optional
import click
from .logging import INFO, LOG_LEVEL_MAP
def cli_logging_options() -> Callable:
def decorator(func: Callable) -> Callable:
@ -18,8 +16,8 @@ def cli_logging_options() -> Callable:
func = click.option(
"--log-level",
"log_level",
type=click.Choice(list(LOG_LEVEL_MAP.keys())),
default=INFO.name,
type=click.Choice(["error", "warning", "info", "debug"]),
default="info",
help="Name of the logging level.",
)(func)