Manual:$wgLogActionsHandlers
Logging: $wgLogActionsHandlers | |
---|---|
Same as $wgLogActions , but values are LogFormatter derived class names. |
|
Introduced in version: | 1.13.0 (r34826) |
Removed in version: | Still in use |
Allowed values: | (array of PHP class names) |
Default value: | see below |
Other settings: Alphabetical | By function |
Details
editSame as $wgLogActions
, but values are LogFormatter derived class names.
See Manual:Logging to Special:Log for more information about logging in MediaWiki.
MediaWiki version: | ≥ 1.42 |
Starting with MediaWiki 1.42.0, ObjectFactory specifications are supported. This removes support for the (undocumented) alternative of specifying a callback.
Default value
editMediaWiki version: | ≥ 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
];
MediaWiki versions: | 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,
];
MediaWiki versions: | 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,
];
MediaWiki versions: | 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',
];
MediaWiki version: | 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',
);
MediaWiki versions: | 1.13 – 1.18 |
$wgLogActionsHandlers = array();