Manual:Hooks/Debug

Debug
Available from version 1.18.0 (r88843, CodeReview archive)
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.