我们如何向logs发送查询,使其只从前端检索日志,而不是从后端检索日志?
发布于 2014-01-03 04:08:20
我不知道您询问的是什么运行时,但是查看PythonSourceforSDK1.8.8,您可以为google.appengine.api.logservice.fetch函数提供以下参数:
module_versions: A list of tuples of the form (module, version), that
indicate that the logs for the given module/version combination should be
fetched. Duplicate tuples will be ignored. This kwarg may not be used
in conjunction with the 'version_ids' kwarg.(这还没有反映在谷歌开发者网站中)
这并不意味着您可以直接访问前端日志,但是如果您从使用后端到使用两个命名模块(一个用于前端请求,另一个用于后端工作),则可以独立地获取每个模块的日志。
https://stackoverflow.com/questions/20892770
复制相似问题