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}");
static $_instance
Reference to the loaded Application.
static isCoreLoaded()
Are Elgg's global functions loaded?
Error exception, when converting an error into an exception.
trait Loggable
Enables adding a logger.
__invoke($errno, $errmsg, $filename= '', $linenum=0)
Intercepts catchable PHP errors.
Handle system and PHP errors.
log($level, $message, array $context=[])
Log a message.