bertoost/MODx-CronManager — pull request #7 by rtripault (2012-03-16 13:07:18+00:00)
Title: Logs

modCronjobLog now have an error field (boolean) which can be used to set the modCronjobLog containing some error. The purpose is to ease the filtering (when you have a cron job running lots of times per day).

Your snippet should now return a JSON array, for example :

```php
$output['error'] = $errors ? 1 : 0;
$output['message'] = $msg;

$output = json_encode($output);
return $output;
```

There is a fallback for all existing cronjobs/snippet, if the output is a string, the error field will be set to false and the string set as message.

Let me know if you need some more details :)