Call the configuration "logger" when writing logs in the error class.

This commit is contained in:
Taylor Otwell
2011-07-11 09:57:20 -07:00
parent f54ef2b4c9
commit 8053d8e954

View File

@@ -44,7 +44,7 @@ class Error {
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);