Manual:$wgLogTypes

From mediawiki.org
This page is a translated version of the page Manual:$wgLogTypes and the translation is 67% complete.
Logging: $wgLogTypes
Lista de tipos de registo.
Introduzida na versão:1.7.0 (r14373)
Removida na versão:ainda em uso
Valores permitidos:(matriz de strings)
Valor por omissão:veja abaixo

Detalhes

Lista de tipos de registo. 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.

This setting is used for validating log search parameters and generating the log search UIs. Log types not present here will still be accepted for new log entries and displayed in log event lists.

Valor predefinido

Versão MediaWiki:
1.40
$wgLogTypes = [
	'',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
	'merge',
	'suppress',
	'tag',
	'managetags',
	'contentmodel',
	'renameuser',
];
Versões do MediaWiki:
1.26 – 1.39
$wgLogTypes = [
	'',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
	'merge',
	'suppress',
	'tag',
	'managetags',
	'contentmodel',
];
Versão MediaWiki:
1.25
$wgLogTypes = array(
	'',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
	'merge',
	'suppress',
	'tag',
	'managetags',
);
Versões do MediaWiki:
1.13 – 1.24
$wgLogTypes = array(
	'',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
	'merge',
	'suppress',
);
Versão MediaWiki:
1.12
$wgLogTypes = array( '',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
	'merge',
);
Versões do MediaWiki:
1.10 – 1.11
$wgLogTypes = array( '',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import',
	'patrol',
);
Versões do MediaWiki:
1.7 – 1.9
$wgLogTypes = array( '',
	'block',
	'protect',
	'rights',
	'delete',
	'upload',
	'move',
	'import' );

Gotchas

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.