import logging logging.basicConfig( level=logging.DEBUG, filename="demo.log", filemode="w", format="%(asctime)s - %(name)s - %(levelname)-9s - %(filename)-8s : %(lineno)s line - %(message)s", datefmt="%Y-%m-%d %H:%M:%S", ) # Path: src/logging.py def logging_info(text: str): logging.info(text)