PHP logging
EventLogging::logEvent( 'PageRestoration', 7758372, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"PageRestoration": 7758372
}
}
}
}
JavaScript logging
mw.track( 'event.PageRestoration', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs a page restoration (undelete) event" |
---|
properties | userId | type | "integer" |
---|
description | "User ID of the user restoring the page (zero for anons)." |
---|
required | true |
---|
|
---|
userText | type | "string" |
---|
description | "Username or IP address of the user restoring the page." |
---|
required | true |
---|
|
---|
oldPageId | type | "integer" |
---|
description | "The ID of the old, deleted page." |
---|
required | true |
---|
|
---|
newPageId | type | "integer" |
---|
description | "The ID of the recreated page. (usually changed when the page is restored)" |
---|
required | true |
---|
|
---|
namespace | type | "integer" |
---|
description | "The namespace of the page" |
---|
required | true |
---|
|
---|
title | type | "string" |
---|
description | "The title of the page, in DB form with no namespace prefix" |
---|
required | true |
---|
|
---|
comment | type | "string" |
---|
description | "The comment provided by the user when restoring the page." |
---|
required | true |
---|
|
---|
|
---|