Manual:$wgLogTypes

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎español • ‎日本語 • ‎polski • ‎русский
Special pages: $wgLogTypes
List of log types.
Introduced in version: 1.7.0 (r14373)
Removed in version: still in use
Allowed values: array of strings
Default value: see below
Other settings: Alphabetical | By function

Details[edit]

List of log types. The logging system has two levels: an event type, which describes the general category and can be viewed as a named subset of all logs; and an action, which is a specific kind of event that can exist in that log type.

Default value[edit]

$wgLogTypes = array( '',
    'block',
    'protect',
    'rights',
    'delete',
    'upload',
    'move',
    'import',
    'patrol',
    'merge',
    'suppress',
);

Gotchas[edit]

If you are adding a log type, its name should be 32 bytes or less. If you choose a name longer than 32 bytes, the full name will be kept in the variable but only the first 32 bytes will go into the log table of the database, so that when you try to view records in your custom log, there will appear to be none.

Log actionsManual:Log actions Events: BlockingManual:Block and unblockImportingManual:Importing revisionsMerging historiesManual:Merging historiesPage deletionManual:Page deletionPage movingManual:Page movingPage restorationManual:Page restorationPatrollingManual:PatrollingProtectionManual:ProtectionRenaming a userExtension:RenameuserRevisionDeleteManual:RevisionDeleteThankingExtension:ThanksUploadingManual:UploadingUser creationManual:User creationUser rights managementManual:User rightsMerging usersManual:Merging users

Settings: $wgLogTypesManual:$wgLogTypes$wgLogActionsManual:$wgLogActions$wgLogNamesManual:$wgLogNames$wgLogHeadersManual:$wgLogHeaders$wgLogActionsHandlersManual:$wgLogActionsHandlers$wgLogRestrictionsManual:$wgLogRestrictions$wgFilterLogTypesManual:$wgFilterLogTypes$wgActionFilteredLogsManual:$wgActionFilteredLogs

Miscellaneous: Logging to Special:LogManual:Logging to Special:LogAPIAPI:Logeventslogging tableManual:Logging tableNull revisionManual:Null revision