7 use Elgg\Traits\Loggable;
41 $error = date(
'Y-m-d H:i:s (T)') .
": \"{$errmsg}\" in file {$filename} (line {$linenum})";
44 $reporting_disabled = !(error_reporting() & $errno);
48 $this->log(LogLevel::ERROR,
"PHP ERROR: {$error}");
59 case E_RECOVERABLE_ERROR:
60 if (!$reporting_disabled) {
61 $this->log(LogLevel::WARNING,
"PHP: {$error}");
66 if (!$reporting_disabled) {
67 $this->log(LogLevel::NOTICE,
"PHP NOTICE: {$error}");
Handle system and PHP errors.
__invoke($errno, $errmsg, $filename='', $linenum=0)
Intercepts catchable PHP errors.
static isCoreLoaded()
Are Elgg's global functions loaded?
static $_instance
Reference to the loaded Application.
Error exception, when converting an error into an exception.