Manual:$wgDebugLogGroups

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎suomi • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil
Debug/logging: $wgDebugLogGroups
Direct wfDebugLog() output for certain groups to files other than $wgDebugLogFile.
Introduced in version: 1.5.0 (r10598)
Removed in version: still in use
Allowed values: array of log group keys to filenames
Default value: array()

Other settings: Alphabetical | By Function

Details[edit | edit source]

Set to an array of log group keys to filenames. If set, wfDebugLog() output for that group will go to that file instead of the regular $wgDebugLogFile. Useful for enabling selective logging in production.

Example[edit | edit source]

$wgDebugLogGroups = array(
	'ConfirmEditExtension'	=> $IP . '/ext_confirmedit.log',
	'FCKeditor'		=> $IP . '/ext_fckeditor.log',
	'FCKeditorExtension'	=> $IP . '/ext_fckeditor.log',
);

This example logs debug messages of group "ConfirmEditExtension" to "ext_confirmedit.log" and those of groups "FCKeditor" and "FCKeditorExtension" to "ext_fckeditor.log".