Skip to content

How to: use logging

Ludovico Bianchi edited this page Jul 11, 2022 · 1 revision
import logging


_logger = logging.getLogger(__name__)


def create_model(name: str):
    _logger.info(f"Start creating model {name}")
    m = ...
    _logger.info(f"Creation of model {name} completed")
    return m