PHP logging

EventLogging::logEvent( 'TaskRecommendationLightbulbClick', 9433256, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"TaskRecommendationLightbulbClick": 9433256
			}
		}
	}
}

JavaScript logging

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

Schema:TaskRecommendationLightbulbClick

From Meta, a Wikimedia project coordination wiki
Revision 9433256
Jump to navigation Jump to search
description"Logs a click on the lightbulb icon by a user. Represents a request for recommendations."
properties
userId
type"integer"
requiredtrue
description"The ID of the user who clicked on the Lightbulb."