Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you view historic logs for parse.com cloud code?

On the Parse.com cloud-code console, I can see logs, but they only go back maybe 100-200 lines. Is there a way to see or download older logs?

I've searched their website & googled, and don't see anything.

like image 552
buildsucceeded Avatar asked Aug 06 '14 16:08

buildsucceeded


1 Answers

Using the parse command-line tool, you can retrieve an arbitrary number of log lines:

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

Not sure if there is a limit, but I've been able to fetch 5000 lines of log with this command:

parse logs prod -n 5000
like image 134
Pascal Bourque Avatar answered Nov 06 '22 04:11

Pascal Bourque