from loguru import logger logger.add( "app.log", format="{time:YYYY-MM-DD HH:mm:ss} | {message}", level="INFO", rotation="1 day", retention="30 days", ) logger.add( "errors.log", format="ℹī¸ {time:YYYY-MM-DD HH:mm:ss} | {message}", level="WARNING", rotation="1 day", retention="30 days", ) logger.add( "error.log", format="⛔ī¸ {time:YYYY-MM-DD HH:mm:ss} | {message}", level="ERROR", rotation="1 day", retention="30 days", ) logger.add( "critical.log", format="🚨 {time:YYYY-MM-DD HH:mm:ss} | {message}", level="CRITICAL", rotation="1 day", retention="30 days", )