PHP logging
EventLogging::logEvent( 'MobileAppLoginAttempts', 5412596, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MobileAppLoginAttempts": 5412596
}
}
}
}
JavaScript logging
mw.track( 'event.MobileAppLoginAttempts', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs instances of people trying to login (successfully or not!) via Mobile app" |
---|
properties | username | type | "string" |
---|
description | "Commons Username" |
---|
|
---|
result | type | "string" |
---|
required | true |
---|
description | "What actually happened to the attempt. Possible options are: success | cancelled | network | <error-message-from-action=login>" |
---|
|
---|
device | type | "string" |
---|
required | true |
---|
description | "The device model the user is logging in from. Examples: 'Galaxy Nexus', 'iPad3,1'" |
---|
|
---|
platform | type | "string" |
---|
required | true |
---|
description | "Platform / version the user is logging in from. Example: 'Android/4.2'" |
---|
|
---|
appversion | type | "string" |
---|
required | true |
---|
description | "Version of the app that the user is using. Example: 'Android/1.0', 'iOS/0.5beta1'" |
---|
|
---|
|
---|