I am using this code for logging the error in L4
$logFile = 'log-' . php_sapi_name() . '.txt';
Log::useDailyFiles(storage_path() . '/logs/' . $logFile);
App::error(function(Exception $exception, $code) {
Log::error($exception);
});
but this logs are very heavy error message with trace stack. I don't want any extra data into it, I want only an error name, an error code, an error message and exact location of file. I mean the file containing that statement.