PHP logging
EventLogging::logEvent( 'PageMove', 7495717, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"PageMove": 7495717
}
}
}
}
JavaScript logging
mw.track( 'event.PageMove', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs a page move event" |
---|
properties | userId | type | "integer" |
---|
description | "User ID of the user performing the move (zero for anons)" |
---|
required | true |
---|
|
---|
userText | type | "string" |
---|
description | "Username or IP address of the user performing the move" |
---|
required | true |
---|
|
---|
pageId | type | "integer" |
---|
description | "The page ID of the page being moved" |
---|
required | true |
---|
|
---|
oldNamespace | type | "integer" |
---|
description | "The namespace of the page before it was moved" |
---|
required | true |
---|
|
---|
oldTitle | type | "string" |
---|
description | "The title of the page before it was moved, in DB form with no namespace prefix" |
---|
required | true |
---|
|
---|
newNamespace | type | "integer" |
---|
description | "The namespace of the page after it was moved" |
---|
required | true |
---|
|
---|
newTitle | type | "string" |
---|
description | "The title of the page after it was moved, in DB form with no namespace prefix" |
---|
required | true |
---|
|
---|
redirectId | type | "integer" |
---|
description | "The page ID of the redirect that was created if a redirect was created. Zero if no redirect was created." |
---|
required | true |
---|
|
---|
comment | type | "string" |
---|
description | "The comment provided by the moving user." |
---|
required | true |
---|
|
---|
|
---|