ParseLogs

Class ParseLogs - Allows access to server side parse script logs

author

Ben Friedman friedman.benjamin@gmail.com

package

Parse

Methods

Returns error logs

getErrorLogs(integer $size = 100, null $from = null, null $until = null, null $order = null) : array
static

Arguments

$size

integer

Lines to return, 100 by default

$from

null

Earliest logs to return from, default is 1 week ago

$until

null

Latest logs to return from, defaults to current time

$order

null

Order to sort logs by (asc/desc), defaults to descending

Response

array

Returns info logs

getInfoLogs(integer $size = 100, null $from = null, null $until = null, null $order = null) : array
static

Arguments

$size

integer

Lines to return, 100 by default

$from

null

Earliest logs to return from, default is 1 week ago

$until

null

Latest logs to return from, defaults to current time

$order

null

Order to sort logs by (asc/desc), defaults to descending

Response

array

Requests script logs from the server

getScriptLogs(string $level = 'info', integer $size = 100, null $from = null, null $until = null, null $order = null) : array
static

Arguments

$level

string

Level of logs to return (info/error), default is info

$size

integer

Number of rows to return, default is 100

$from

null

Earliest logs to return from, defaults to 1 week ago

$until

null

Latest logs to return from, defaults to current time

$order

null

Order to sort logs by (asc/desc), defaults to descending

Response

array