Skip to content

The log file will not be created automatically #471

Closed
@blackAzrael

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?
😕

Metadata

Assignees

No one assigned

    Labels

    featureRequest for adding a new feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions