Manual:Hooks/Debug

From MediaWiki.org
Jump to: navigation, search
Debug
Available from version 1.18.0 (r88843)
Removed in version 1.22.0
called when outputting a debug log line via wfDebug() or wfDebugLog()
Define function:
public static function onDebug( $text, $group ) { ... }
Attach hook:
$wgHooks['Debug'][] = 'MyExtensionHooks::onDebug';
Called from: File(s): GlobalFunctions.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:Debug extensions.