import logging # Configure logging logging.basicConfig( level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s' ) def get_logger(name): """Get a logger with the given name""" return logging.getLogger(name)