PHP logging

EventLogging::logEvent( 'SearchSatisfactionErrors', 17181648, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"SearchSatisfactionErrors": 17181648
			}
		}
	}
}

JavaScript logging

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

Schema:SearchSatisfactionErrors

From Meta, a Wikimedia project coordination wiki
Revision 17181648
Jump to navigation Jump to search
description"Receives javascript errors events encountered by the TestSearchSatisfaction2 Schema"
properties
searchSessionId
type"string"
requiredtrue
description"A unique identifier generated per search session. A search session identifies a single user performing searches within a limited timespan. If no search is performed within ten minutes of a previous search a new session id is generated."
visitPageId
type"string"
requiredtrue
description"A unique identifier generated per visited page. This allows correlating between events in TestSearchSatisfaction2 and this schema from the same page"
message
type"string"
requiredfalse
description"Error message supplied with the error event"
error
type"string"
requiredfalse
description"Stringified javacsript error"