PHP logging

EventLogging::logEvent( 'MobileAppLoginAttempts', 5412596, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileAppLoginAttempts": 5412596
			}
		}
	}
}

JavaScript logging

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

Schema:MobileAppLoginAttempts

From Meta, a Wikimedia project coordination wiki
Revision 5412596
Jump to navigation Jump to search
description"Logs instances of people trying to login (successfully or not!) via Mobile app"
properties
username
type"string"
description"Commons Username"
result
type"string"
requiredtrue
description"What actually happened to the attempt. Possible options are: success | cancelled | network | <error-message-from-action=login>"
device
type"string"
requiredtrue
description"The device model the user is logging in from. Examples: 'Galaxy Nexus', 'iPad3,1'"
platform
type"string"
requiredtrue
description"Platform / version the user is logging in from. Example: 'Android/4.2'"
appversion
type"string"
requiredtrue
description"Version of the app that the user is using. Example: 'Android/1.0', 'iOS/0.5beta1'"