PHP logging

EventLogging::logEvent( 'MobileAppShareAttempts', 5346170, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileAppShareAttempts": 5346170
			}
		}
	}
}

JavaScript logging

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

Schema:MobileAppShareAttempts

From Meta, a Wikimedia project coordination wiki
Revision 5346170
Jump to navigation Jump to search
description"Logs instances of people trying to share via Mobile app"
properties
username
type"string"
requiredtrue
description"Commons Username of person sharing the image"
filename
type"string"
description"Name of the file being shared"
device
type"string"
requiredtrue
description"The device model the user is sharing from. Examples: 'Galaxy Nexus', 'iPad3,1'"
platform
type"string"
requiredtrue
description"Platform / version the user is sharing 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'"