import logginglogger = logging.getLogger(__name__) # 当前文件位置
logger.warning('haha') # debug info
2019-04-10 15:48:11 [ 文件位置 ] WARNING: 输出内容
settings
LOG_LEVEL = "WARNING" # 日志等级 LOG_FILE = "./spider.log" # 日志存储
Copyright @ 2025 .Tang Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster