PHP logging
EventLogging::logEvent( 'MobileAppUploadAttempts', 5561981, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"MobileAppUploadAttempts": 5561981
}
}
}
}
JavaScript logging
mw.track( 'event.MobileAppUploadAttempts', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs instances of people trying to upload (successfully or not!) via Mobile app" |
---|
properties | username | type | "string" |
---|
required | true |
---|
description | "Hashed and Salted Commons Username, salted with the Device name of the user" |
---|
|
---|
source | type | "string" |
---|
required | true |
---|
enum | "camera" |
"gallery" |
"external" |
|
---|
description | "Identifier for the upload funnel. Could be from camera inside the app, gallery inside the app, or from a share request from an external application" |
---|
|
---|
multiple | type | "boolean" |
---|
required | true |
---|
description | "If this upload is a part of a set of multiple uploads" |
---|
|
---|
filename | type | "string" |
---|
description | "Name of the file being uploaded" |
---|
|
---|
result | type | "string" |
---|
required | true |
---|
description | "What actually happened to the attempt. Possible options are: success | cancelled | network | <error-message-from-action=upload>" |
---|
|
---|
platform | type | "string" |
---|
required | true |
---|
description | "Platform / version the user is uploading 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'" |
---|
|
---|
|
---|