Jump to content

Manuel:$wgLogActionsHandlers

From mediawiki.org
This page is a translated version of the page Manual:$wgLogActionsHandlers and the translation is 100% complete.
Journalisation: $wgLogActionsHandlers
Similaire à $wgLogActions , mais les valeurs sont des noms de classes dérivées de LogFormatter.
Introduit dans la version :1.13.0 (r34826)
Retiré dans la version :Encore utilisé
Valeurs autorisées :(tableau de noms de classes PHP)
Valeur par défaut :voir ci-dessous

Détails

Similaire à $wgLogActions , mais les valeurs sont des noms de classes dérivées de LogFormatter.

Voir Manual:enregistrement dans Special:Log pour davantage d'informations concernant la journalisation dans MediaWiki.

Version de MediaWiki :
1.42

A partir de MediaWiki 1.42.0, les spécifications de ObjectFactory sont prises en charge. Cela supprime le support de l'alternative (non documentée) qui spécifie une procédure de rappel.

Valeurs par défaut

Version de MediaWiki :
1.40
$wgLogActionsHandlers = [
	'block/block' => BlockLogFormatter::class,					// 1.25.0
	'block/reblock' => BlockLogFormatter::class,				// 1.25.0
	'block/unblock' => BlockLogFormatter::class,				// 1.25.0
	'contentmodel/change' => ContentModelLogFormatter::class,	// 1.26.0
	'contentmodel/new' => ContentModelLogFormatter::class,		// 1.27.0
	'delete/delete' => DeleteLogFormatter::class,				// 1.19.0
	'delete/delete_redir' => DeleteLogFormatter::class,			// 1.28.0
	'delete/delete_redir2' => DeleteLogFormatter::class,		// 1.36.0
	'delete/event' => DeleteLogFormatter::class,				// 1.19.0
	'delete/restore' => DeleteLogFormatter::class,				// 1.19.0
	'delete/revision' => DeleteLogFormatter::class,				// 1.19.0
	'import/interwiki' => ImportLogFormatter::class,			// 1.25.0
	'import/upload' => ImportLogFormatter::class,				// 1.25.0
	'managetags/activate' => LogFormatter::class,				// 1.25.0
	'managetags/create' => LogFormatter::class,					// 1.25.0
	'managetags/deactivate' => LogFormatter::class,				// 1.25.0
	'managetags/delete' => LogFormatter::class,					// 1.25.0
	'merge/merge' => MergeLogFormatter::class,					// 1.25.0
	'move/move' => MoveLogFormatter::class,						// 1.19.0
	'move/move_redir' => MoveLogFormatter::class,				// 1.19.0
	'patrol/patrol' => PatrolLogFormatter::class,				// 1.19.0
	'patrol/autopatrol' => PatrolLogFormatter::class,			// 1.27.0
	'protect/modify' => ProtectLogFormatter::class,				// 1.27.0
	'protect/move_prot' => ProtectLogFormatter::class,			// 1.26.0
	'protect/protect' => ProtectLogFormatter::class,			// 1.27.0
	'protect/unprotect' => ProtectLogFormatter::class,			// 1.27.0
	'renameuser/renameuser' => RenameuserLogFormatter::class,	// 1.40.0
	'rights/autopromote' => RightsLogFormatter::class,			// 1.21.0
	'rights/rights' => RightsLogFormatter::class,				// 1.21.0
	'suppress/block' => BlockLogFormatter::class,				// 1.25.0
	'suppress/delete' => DeleteLogFormatter::class,				// 1.19.0
	'suppress/event' => DeleteLogFormatter::class,				// 1.19.0
	'suppress/reblock' => BlockLogFormatter::class,				// 1.25.0
	'suppress/revision' => DeleteLogFormatter::class,			// 1.19.0
	'tag/update' => TagLogFormatter::class,						// 1.25.0
	'upload/overwrite' => UploadLogFormatter::class,			// 1.24.0, 1.25.0
	'upload/revert' => UploadLogFormatter::class,				// 1.24.0, 1.25.0
	'upload/upload' => UploadLogFormatter::class,				// 1.24.0, 1.25.0
];
Versions de MediaWiki :
1.36 – 1.39
$wgLogActionsHandlers = [
	'block/block' => BlockLogFormatter::class,
	'block/reblock' => BlockLogFormatter::class,
	'block/unblock' => BlockLogFormatter::class,
	'contentmodel/change' => ContentModelLogFormatter::class,
	'contentmodel/new' => ContentModelLogFormatter::class,
	'delete/delete' => DeleteLogFormatter::class,
	'delete/delete_redir' => DeleteLogFormatter::class,
	'delete/delete_redir2' => DeleteLogFormatter::class,
	'delete/event' => DeleteLogFormatter::class,
	'delete/restore' => DeleteLogFormatter::class,
	'delete/revision' => DeleteLogFormatter::class,
	'import/interwiki' => ImportLogFormatter::class,
	'import/upload' => ImportLogFormatter::class,
	'managetags/activate' => LogFormatter::class,
	'managetags/create' => LogFormatter::class,
	'managetags/deactivate' => LogFormatter::class,
	'managetags/delete' => LogFormatter::class,
	'merge/merge' => MergeLogFormatter::class,
	'move/move' => MoveLogFormatter::class,
	'move/move_redir' => MoveLogFormatter::class,
	'patrol/patrol' => PatrolLogFormatter::class,
	'patrol/autopatrol' => PatrolLogFormatter::class,
	'protect/modify' => ProtectLogFormatter::class,
	'protect/move_prot' => ProtectLogFormatter::class,
	'protect/protect' => ProtectLogFormatter::class,
	'protect/unprotect' => ProtectLogFormatter::class,
	'rights/autopromote' => RightsLogFormatter::class,
	'rights/rights' => RightsLogFormatter::class,
	'suppress/block' => BlockLogFormatter::class,
	'suppress/delete' => DeleteLogFormatter::class,
	'suppress/event' => DeleteLogFormatter::class,
	'suppress/reblock' => BlockLogFormatter::class,
	'suppress/revision' => DeleteLogFormatter::class,
	'tag/update' => TagLogFormatter::class,
	'upload/overwrite' => UploadLogFormatter::class,
	'upload/revert' => UploadLogFormatter::class,
	'upload/upload' => UploadLogFormatter::class,
];
Versions de MediaWiki :
1.31 – 1.35
$wgLogActionsHandlers = [
	'block/block' => BlockLogFormatter::class,
	'block/reblock' => BlockLogFormatter::class,
	'block/unblock' => BlockLogFormatter::class,
	'contentmodel/change' => ContentModelLogFormatter::class,
	'contentmodel/new' => ContentModelLogFormatter::class,
	'delete/delete' => DeleteLogFormatter::class,
	'delete/delete_redir' => DeleteLogFormatter::class,
	'delete/event' => DeleteLogFormatter::class,
	'delete/restore' => DeleteLogFormatter::class,
	'delete/revision' => DeleteLogFormatter::class,
	'import/interwiki' => ImportLogFormatter::class,
	'import/upload' => ImportLogFormatter::class,
	'managetags/activate' => LogFormatter::class,
	'managetags/create' => LogFormatter::class,
	'managetags/deactivate' => LogFormatter::class,
	'managetags/delete' => LogFormatter::class,
	'merge/merge' => MergeLogFormatter::class,
	'move/move' => MoveLogFormatter::class,
	'move/move_redir' => MoveLogFormatter::class,
	'patrol/patrol' => PatrolLogFormatter::class,
	'patrol/autopatrol' => PatrolLogFormatter::class,
	'protect/modify' => ProtectLogFormatter::class,
	'protect/move_prot' => ProtectLogFormatter::class,
	'protect/protect' => ProtectLogFormatter::class,
	'protect/unprotect' => ProtectLogFormatter::class,
	'rights/autopromote' => RightsLogFormatter::class,
	'rights/rights' => RightsLogFormatter::class,
	'suppress/block' => BlockLogFormatter::class,
	'suppress/delete' => DeleteLogFormatter::class,
	'suppress/event' => DeleteLogFormatter::class,
	'suppress/reblock' => BlockLogFormatter::class,
	'suppress/revision' => DeleteLogFormatter::class,
	'tag/update' => TagLogFormatter::class,
	'upload/overwrite' => UploadLogFormatter::class,
	'upload/revert' => UploadLogFormatter::class,
	'upload/upload' => UploadLogFormatter::class,
];
Versions de MediaWiki :
1.28 – 1.30
$wgLogActionsHandlers = [
	'block/block' => 'BlockLogFormatter',
	'block/reblock' => 'BlockLogFormatter',
	'block/unblock' => 'BlockLogFormatter',
	'contentmodel/change' => 'ContentModelLogFormatter',
	'contentmodel/new' => 'ContentModelLogFormatter',
	'delete/delete' => 'DeleteLogFormatter',
	'delete/delete_redir' => 'DeleteLogFormatter',
	'delete/event' => 'DeleteLogFormatter',
	'delete/restore' => 'DeleteLogFormatter',
	'delete/revision' => 'DeleteLogFormatter',
	'import/interwiki' => 'ImportLogFormatter',
	'import/upload' => 'ImportLogFormatter',
	'managetags/activate' => 'LogFormatter',
	'managetags/create' => 'LogFormatter',
	'managetags/deactivate' => 'LogFormatter',
	'managetags/delete' => 'LogFormatter',
	'merge/merge' => 'MergeLogFormatter',
	'move/move' => 'MoveLogFormatter',
	'move/move_redir' => 'MoveLogFormatter',
	'patrol/patrol' => 'PatrolLogFormatter',
	'patrol/autopatrol' => 'PatrolLogFormatter',
	'protect/modify' => 'ProtectLogFormatter',
	'protect/move_prot' => 'ProtectLogFormatter',
	'protect/protect' => 'ProtectLogFormatter',
	'protect/unprotect' => 'ProtectLogFormatter',
	'rights/autopromote' => 'RightsLogFormatter',
	'rights/rights' => 'RightsLogFormatter',
	'suppress/block' => 'BlockLogFormatter',
	'suppress/delete' => 'DeleteLogFormatter',
	'suppress/event' => 'DeleteLogFormatter',
	'suppress/reblock' => 'BlockLogFormatter',
	'suppress/revision' => 'DeleteLogFormatter',
	'tag/update' => 'TagLogFormatter',
	'upload/overwrite' => 'UploadLogFormatter',
	'upload/revert' => 'UploadLogFormatter',
	'upload/upload' => 'UploadLogFormatter',
];
Version de MediaWiki :
1.19
$wgLogActionsHandlers = array(
	// move, move_redir
	'move/*'            => 'MoveLogFormatter',
	// delete, restore, revision, event
	'delete/*'          => 'DeleteLogFormatter',
	'suppress/revision' => 'DeleteLogFormatter',
	'suppress/event'    => 'DeleteLogFormatter',
	'suppress/delete'   => 'DeleteLogFormatter',
	'patrol/patrol'     => 'PatrolLogFormatter',
);
Versions de MediaWiki :
1.13 – 1.18
$wgLogActionsHandlers = array();