Manual:$wgLogActionsHandlers/pt

From Linux Web Expert

Revision as of 16:31, 26 January 2024 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Logging</translate>: $wgLogActionsHandlers
Same as $wgLogActions , but values are LogFormatter derived class names.
<translate> Introduced in version:</translate>1.13.0 (r34826)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(matriz de callbacks de função)
<translate> Default value:</translate>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.

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.42
<translate> MediaWiki version:</translate>

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

Valor predefinido

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.40
<translate> MediaWiki version:</translate>
$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
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.39</tvar> is legacy version</translate>">
1.36 – 1.39
<translate> MediaWiki versions:</translate>
$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,
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.31 – 1.35
<translate> MediaWiki versions:</translate>
$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,
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.30</tvar> is unsupported version</translate>">
1.28 – 1.30
<translate> MediaWiki versions:</translate>
$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',
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.19</tvar> is unsupported version</translate>">
1.19
Versão MediaWiki:
$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',
);
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.18</tvar> is unsupported version</translate>">
1.13 – 1.18
<translate> MediaWiki versions:</translate>
$wgLogActionsHandlers = array();