Call the configuration "logger" when writing logs in the error class.
This commit is contained in:
parent
f54ef2b4c9
commit
8053d8e954
|
|
@ -44,7 +44,7 @@ public static function handle($e)
|
||||||
|
|
||||||
if (Config::get('error.log'))
|
if (Config::get('error.log'))
|
||||||
{
|
{
|
||||||
Log::error($message.' in '.$e->getFile().' on line '.$e->getLine());
|
call_user_func(Config::get('error.logger'), $severity, $message.' in '.$e->getFile().' on line '.$e->getLine());
|
||||||
}
|
}
|
||||||
|
|
||||||
static::show($e, $severity, $message, $file);
|
static::show($e, $severity, $message, $file);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue