1

9 lines
198 B
Python

import logging
def configure_logging(verbose: bool = False):
logging.basicConfig(
level=logging.DEBUG if verbose else logging.INFO,
format="%(levelname)s:\t%(message)s",
)