URL: v3/api/logs/exception
Method: GET
Description : Gets the list of logs
Parameters:
Parameter | Type | Optional/Required | Description |
search_query | string | Optional | String that has to be searched |
sort_order | string | Optional | Sort order `asc` or `desc` |
sort_field | string | Optional | Field by which results has to be sorted |
limit | string | Optional | Count of results that are required |
category_ids | array | Optional | Log Category Id by which results can be filtered |
created_at_start | string | Optional | Start time for created at |
create_at_end | string | Optional | End time for created at |
Response:
{ "success":true, "data": { "current_page":1, "data":[{ "id":1, "category":{ "id":7, "name":"default" } "file":"\/Applications\/AMPPS\/www\/faveo-helpdesk-advance\/App\/FaveoLog\/tests\/Backend\/LogViewControllerTest.php", "line":19, "trace":"#0 \/Applications\/AMPPS\/www\/faveo-helpdesk-advance\/vendor\/phpunit\/phpunit\/src\/Framework\/TestCase.php(1153): App\\FaveoLog\\Tests\\Backend\\LogViewControllerTest->test_getExceptionLogs_whenNoParametersIsPassed()\n#1 \/Applications\/AMPPS\/www\/faveo-helpdesk-advance", "message":"test_exception_1", "created_at":"2018-12-27 02:26:40", }, { "id":2, "category":{ "id":7, "name":"default" } "file":"\/Applications\/AMPPS\/www\/faveo-helpdesk-advance\/App\/FaveoLog\/tests\/Backend\/LogViewControllerTest.php", "line":20, "trace":"#0 \/Applications\/AMPPS\/www\/faveo-helpdesk-advance\/vendor\/phpunit\/phpunit\/src\/Framework\/TestCase.php(1153): App\\FaveoLog\\Tests\\Backend\\LogViewControllerTest->test_getExceptionLogs_whenNoParametersIsPassed()\n#1 \/Applications\/AMPPS\/www\/faveo-helpdesk-advance", "message":"test_exception_2", "created_at":"2018-12-27 02:26:40", }], "first_page_url":"http:\/\/localhost:8000\/api\/logs\/mail?page=1, "from":1, "last_page":1, "last_page_url":"http:\/\/localhost:8000\/api\/logs\/mail?page=1", "next_page_url":null, "per_page":10, "prev_page_url":null, "to":2, "total":2 } }