Jump to content

Manual:$wgLogActionsHandlers

From mediawiki.org
This page is a translated version of the page Manual:$wgLogActionsHandlers and the translation is 40% complete.
Outdated translations are marked like this.
Logging: $wgLogActionsHandlers
Same as $wgLogActions , but values are LogFormatter derived class names.
Introduzida na versão:1.13.0 (r34826)
Removida na versão:ainda em uso
Valores permitidos:(matriz de callbacks de função)
Valor por omissão:veja abaixo

Detalhes

Same as $wgLogActions , but values are LogFormatter derived class names.

See Manual:Logging to Special:Log for more information about logging in MediaWiki.

Versão MediaWiki:
1.42

Starting with MediaWiki 1.42.0, ObjectFactory specifications are supported. This removes support for the (undocumented) alternative of specifying a callback.

Valor predefinido

Versão 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
];
Versões do 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,
];
Versões do 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,
];
Versões do 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',
];
Versão 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',
);
Versões do MediaWiki:
1.13 – 1.18
$wgLogActionsHandlers = array();