Jump to content

Schema:ULS

PHP logging

EventLogging::logEvent( 'ULS', 5789386, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ULS": 5789386
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ULS', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 5789386
description"This schema is not in use. See Schema:UniversalLanguageSelector."
properties
version
type"integer"
requiredtrue
description"Version number. This field can be used to track changes in instrumentation that affect the nature of the data collected."
action
type"string"
requiredtrue
enum
"content-font-change"
"ime-change"
"ime-disable"
"ime-enable"
"imes-disable"
"imes-enable"
"language-selection-method"
"login-click"
"more-languages-access"
"no-search-result"
"settings-open"
"ui-font-change"
"ui-lang-change"
"ui-lang-revert"
description"The actions involved in using Universal Language Selector: content-font-change: User changed the font for content language ime-change: User changed the used input method ime-disable: User disabled input method ime-enable: User enabled input method imes-disable: User disabled input methods completely imes-enable: User enabled input methods language-selection-method: User used selection mechanism on language list (search, click on common languages, click on the rest of the list) login-click: Anonymous user clicked login link in ULS more-languages-access: Used accessed "..." to get more languages no-search-result: User searched for a language with no results settings-open: User opened ULS settings ui-font-change: User changed user interface font ui-lang-revert: User immediately reverted user language change ui-lang-change: User changed user interface language"
domain
type"string"
requiredtrue
description"Domain the event was logged on. For example www.mediawiki.org or translatewiki.net."
origin
type"string"
requiredfalse
enum
"personal"
"sidebar"
"ime"
"preferences"
description"Where the action was initiated in the langauge selector: personal: ULS was opened from personal toolbar sidebar: ULS was opened from the interlanguage section in the sidebar ime: ULS was opened from the keyboard icon in a text input area preferences: ULS was opened by clicking the link "More langauge settings" in Special:Preferences"
sitelanguage
type"string"
requiredtrue
description"MediaWiki language code, the value of wgLanguageCode. Is the same for all users on a particular wiki."
uilanguage
type"string"
requiredtrue
description"MediaWiki language code the user is setting for the user interface"
inputlanguage
type"string"
requiredfalse
description"MediaWiki language code with the language the user is currently inputting."
inputmethod
type"string"
requiredfalse
description"Input method identifier for input method the user is using."
fontui
type"string"
requiredfalse
description"Font used for user interface. "system" when no web font is used for user interface."
fontcontent
type"string"
requiredfalse
description"Font used for content. "system" when no web font is used for content."
data
type"string"
requiredfalse
description"Action related data. Depends on action: no-search-result: The string a user entered that provided no languages as result."