【发布时间】:2021-04-01 16:52:23
【问题描述】:
【问题讨论】:
标签: google-cloud-ml google-cloud-logging gcp-ai-platform-training google-ai-platform
【问题讨论】:
标签: google-cloud-ml google-cloud-logging gcp-ai-platform-training google-ai-platform
查看training logs 的 AI Platform 故障排除文档。有说You can put logging events in your application with standard Python libraries,比如logging。
我没有尝试过,但似乎可以使用记录器对象类来设置所需的日志级别:
Logger.info(msg, *args, **kwargs)
Logs a message with level INFO on this logger. The arguments are interpreted as for debug().
Logger.warning(msg, *args, **kwargs)
Logs a message with level WARNING on this logger. The arguments are interpreted as for debug().
Logger.critical(msg, *args, **kwargs)
Logs a message with level CRITICAL on this logger. The arguments are interpreted as for debug().
【讨论】:
logger.info,但它被解释为严重错误。