PHP logging

EventLogging::logEvent( 'MobileWebCentralAuthError', 7931912, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebCentralAuthError": 7931912
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebCentralAuthError

From Meta, a Wikimedia project coordination wiki
Revision 7931912
Jump to navigation Jump to search
description"Events to debug problems with CentralAuth on the Wikimedia mobile web."
properties
token
type"string"
requiredtrue
description"User token"
error
type"string"
requiredtrue
enum
"commonsImageError"
description"Kind of error. commonsImageError - when CentralAuth Commons image failed to load (detected in JavaScript)"
mobileMode
type"string"
requiredtrue
enum
"stable"
"beta"
"alpha"
description"Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site."