PHP logging

EventLogging::logEvent( 'MobileAppUploadAttempts', 5561981, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileAppUploadAttempts": 5561981
			}
		}
	}
}

JavaScript logging

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

Schema:MobileAppUploadAttempts

From Meta, a Wikimedia project coordination wiki
Revision 5561981
Jump to navigation Jump to search
description"Logs instances of people trying to upload (successfully or not!) via Mobile app"
properties
username
type"string"
requiredtrue
description"Hashed and Salted Commons Username, salted with the Device name of the user"
source
type"string"
requiredtrue
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"
requiredtrue
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"
requiredtrue
description"What actually happened to the attempt. Possible options are: success | cancelled | network | <error-message-from-action=upload>"
platform
type"string"
requiredtrue
description"Platform / version the user is uploading 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'"