Parse platform 您可以查看parse.com云代码的历史日志吗?
在Parse.com云代码控制台上,我可以看到日志,但它们只能返回100-200行。有没有办法查看或下载旧日志Parse platform 您可以查看parse.com云代码的历史日志吗?,parse-platform,Parse Platform,在Parse.com云代码控制台上,我可以看到日志,但它们只能返回100-200行。有没有办法查看或下载旧日志 我搜索了他们的网站&google,什么也没看到。使用parse命令行工具,您可以检索任意数量的日志行: Usage: parse logs [flags] Aliases: logs, log Flags: -f, --follow=false: Emulates tail -f and streams new messages from the server -
我搜索了他们的网站&google,什么也没看到。使用
parse
命令行工具,您可以检索任意数量的日志行:
Usage:
parse logs [flags]
Aliases:
logs, log
Flags:
-f, --follow=false: Emulates tail -f and streams new messages from the server
-l, --level="INFO": The log level to restrict to. Can be 'INFO' or 'ERROR'.
-n, --num=10: The number of the messages to display
不确定是否有限制,但我已经能够使用此命令获取5000行日志:
parse logs prod -n 5000
为了补充Pascal Bourque的答案,您可能还希望按给定的日期范围过滤日志。为了实现这一点,我使用了以下方法:
parse logs -n 5000 | sed -n '/2016-01-10/, /2016-01-15/p' > filteredLog.txt
这将获得多达5000个日志,使用sed
命令保留2016-01-10
和2016-01-15
之间的所有日志,并将结果存储在filteredLog.txt中