Manual:Hooks/Debug
Appearance
This feature was removed completely in version 1.22.0. |
Debug | |
---|---|
Available from version 1.18.0 (r88843, codereview) 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: | In extension.json:
{
"Hooks": {
"Debug": "MediaWiki\\Extension\\MyExtension\\Hooks::onDebug"
}
}
|
Called from: | File(s): GlobalFunctions.php |
Interface: | DebugHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:Debug extensions.