Jul 8, 2015
0
Level 1
Logs error
Hi, I have a problem
I send the exceptions errors to log file via log::error, I send the errors in a json array.
When I see the log file, the error appears like this
[2015-07-08 15:28:06] lumen.ERROR: HTTP/1.0 200 OK Cache-Control: no-cache Content-Type: application/json Date: Wed, 08 Jul 2015 15:28:05 GMT
{"code":0,"message"....
Im only need this lumen.ERROR: {"code":0,"message"..
The line where I send the error is this
Log::error(response()->json((array("code" => $e->getCode(),"message" => $e->getMessage(), "traceAsString" => $e->getTraceAsString() ))));
Any help?
Please or to participate in this conversation.