PHP logging

EventLogging::logEvent( 'AdvancedSearchRequest', 18227136, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"AdvancedSearchRequest": 18227136
			}
		}
	}
}

JavaScript logging

mw.track( 'event.AdvancedSearchRequest', { /* ... */ } );

Schema:AdvancedSearchRequest

From Meta, a Wikimedia project coordination wiki
Revision 18227136
Jump to navigation Jump to search
description"Logs search requests using Extension:AdvancedSearch"
properties
plain
type"boolean"
requiredtrue
description"Indicates whether the field labeled by 'this word' is used."
phrase
type"boolean"
requiredtrue
description"Indicates whether the field labeled by 'exactly this text' is used."
not
type"boolean"
requiredtrue
description"Indicates whether the field labeled by 'not this word' is used."
or
type"boolean"
requiredtrue
description"Indicates whether the field labeled by 'one of these words' is used."
intitle
type"boolean"
requiredtrue
description"Indicates whether the keyword 'intitle' is used."
hastemplate
type"boolean"
requiredtrue
description"Indicates whether the keyword 'hastemplate' is used."
filetype
type"boolean"
requiredtrue
description"Indicates whether the keyword 'filetype' is used."
subpageof
type"boolean"
requiredtrue
description"Indicates whether the keyword 'subpageof' is used."
inlanguage
type"boolean"
description"Indicates whether the keyword 'inlanguage' is used."
deepcategory
type"boolean"
requiredtrue
description"Indicates whether the keyword 'deepcategory' is used."