合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
主文件中: ```python # Level: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET import logging logging.basicConfig(level=logging.DEBUG, filename="mylog.log", format='%(asctime)s %(levelname)s %(filename)s %(funcName)s %(lineno)d %(message)s', filemode='w') logger = logging.getLogger(__name__) # logger.getLogger("module_name").setLevel(logging.CRITICAL) ``` 在其他文件: ```py import logging logger = logging.getLogger(__name__) ```