💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
主文件中: ```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__) ```