MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onLogException ( $e, $suppressed) | |
This hook is called before an exception (or PHP error) is logged. | |
Stable to implement.
Definition at line 12 of file LogExceptionHook.php.
MediaWiki\Hook\LogExceptionHook::onLogException | ( | $e, | |
$suppressed | |||
) |
This hook is called before an exception (or PHP error) is logged.
This is meant for integration with external error aggregation services; returning false will NOT prevent logging.
Exception | ErrorException | $e | Exception (in case of a plain old PHP error, a wrapping ErrorException) |
bool | $suppressed | True if the error was suppressed via error_reporting()/wfSuppressWarnings() |
Implemented in MediaWiki\HookContainer\HookRunner.