PHP logging

EventLogging::logEvent( 'TranslationRecommendationAPIRequests', 16261139, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"TranslationRecommendationAPIRequests": 16261139
			}
		}
	}
}

JavaScript logging

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

Schema:TranslationRecommendationAPIRequests

From Meta, a Wikimedia project coordination wiki
Revision 16261139
Jump to navigation Jump to search
description"Logs requests to Translation Recommendation API"
properties
timestamp
description"Time the request was received in seconds since epoch"
type"integer"
requiredtrue
sourceLanguage
description"Source language identifier"
type"string"
requiredtrue
targetLanguage
description"Target language identifier"
type"string"
requiredtrue
seed
description"Seed parameter used for searching"
type"string"
requiredfalse
searchAlgorithm
description"Search algorithm used"
type"string"
requiredfalse
userId
description"Editor's user ID"
type"integer"
requiredfalse
origin
description"Origin of the request"
type"string"
requiredfalse