from loguru import logger logger.add("info.log",level="INFO",rotation="1 hour") logger.info("logmsg")