PHP logging
EventLogging::logEvent( 'ContentTranslationError', 11767097, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"ContentTranslationError": 11767097
}
}
}
}
JavaScript logging
mw.track( 'event.ContentTranslationError', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Schema for ContentTranslation extension events. Keeps track of translation errors" |
---|
properties | version | type | "integer" |
---|
required | true |
---|
description | "Version number. This field can be used to track changes in instrumentation that affect the nature of the data collected." |
---|
|
---|
token | type | "string" |
---|
description | "Username for logged in users or session token for anonymous users" |
---|
required | true |
---|
|
---|
session | type | "string" |
---|
description | "Session identifier" |
---|
required | true |
---|
|
---|
context | type | "string" |
---|
description | "Error context" |
---|
required | true |
---|
|
---|
sourceLanguage | type | "string" |
---|
description | "Source language" |
---|
required | true |
---|
|
---|
targetLanguage | type | "string" |
---|
description | "Target language" |
---|
required | true |
---|
|
---|
sourceTitle | type | "string" |
---|
description | "Source title" |
---|
required | true |
---|
|
---|
targetTitle | type | "string" |
---|
description | "Target title" |
---|
required | false |
---|
|
---|
trace | type | "string" |
---|
description | "Error trace" |
---|
required | true |
---|
|
---|
|
---|