Skip to content

Commit

Permalink
New ErrorLog Onsigbaar\Foundation\Base\Traits
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymoussc committed Feb 3, 2018
1 parent 0514040 commit 1643fe2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Base/Traits/ErrorLog.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* ErrorLog.php
* Created by @anonymoussc on 01/28/2018 3:57 AM.
*/

namespace Onsigbaar\Foundation\Base\Traits;

use Illuminate\Support\Facades\Log;

trait ErrorLog
{
public function errorLog($error)
{
Log::error($error->getMessage());
Log::error($error->getCode());
Log::error($error->getFile());
Log::error($error->getLine());
Log::error($error->getTraceAsString());
}
}

0 comments on commit 1643fe2

Please sign in to comment.