Closed
Description
from loguru import logger
logger.add("log/waf_api.log", rotation="00:00", encoding="utf-8", enqueue=True, retention="2 months")
import time
if __name__ == "__main__":
while True:
logger.debug("11111")
time.sleep(1)
When I delete my log file manually when the program is running, the log file waf_api.log will not be created. How can I solve this?
😕