PHP logging
EventLogging::logEvent( 'LayoutGlitchDetected', 15720081, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"LayoutGlitchDetected": 15720081
}
}
}
}
JavaScript logging
mw.track( 'event.LayoutGlitchDetected', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Represents a page layout bug that was automatically discovered" |
---|
properties | error | type | "string" |
---|
required | true |
---|
enum | "content-wider-than-viewport" |
"content-narrower-than-viewport" |
"image-size-or-position" |
|
---|
description | "The type of layout error we detected" |
---|
|
---|
pageId | type | "integer" |
---|
required | true |
---|
description | "ID of the page that had the error" |
---|
|
---|
revisionId | type | "integer" |
---|
required | true |
---|
description | "Revision ID of the page that had the error" |
---|
|
---|
mobileMode | type | "string" |
---|
required | true |
---|
enum | |
---|
description | "Whether the user is using the stable, beta, or alpha version of the mobile site." |
---|
|
---|
affected-node | type | "string" |
---|
required | false |
---|
description | "If the layout bug affects a particular part of the page, this field will identify it." |
---|
|
---|
|
---|