jobqueue: Record stats on how long it takes before a job is run
[lhc/web/wiklou.git] / docs / hooks.txt
index 131986a..8e9223b 100644 (file)
@@ -1842,6 +1842,11 @@ $param: Associative Array with the following additional options:
     "<div ...>$1</div>").
   - flags Integer display flags (NO_ACTION_LINK,NO_EXTRA_USER_LINKS)
 
+'LogException': 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.
+$e: The exception (in case of a plain old PHP error, a wrapping ErrorException)
+$suppressed: true if the error was suppressed via error_reporting()/wfSuppressWarnings()
+
 'LoginAuthenticateAudit': A login attempt for a valid user account either
 succeeded or failed. No return data is accepted; this hook is for auditing only.
 $user: the User object being authenticated against