PHP logging
EventLogging::logEvent( 'PageCreation', 7481635, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"PageCreation": 7481635
}
}
}
}
JavaScript logging
mw.track( 'event.PageCreation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs a page creation event" |
---|
properties | userId | type | "integer" |
---|
description | "User ID of the user creating the page (zero for anons). Should match rev_user of first revision." |
---|
required | true |
---|
|
---|
userText | type | "string" |
---|
description | "Username or IP address of the user creating the page. Should match rev_user_text of first revision." |
---|
required | true |
---|
|
---|
pageId | type | "integer" |
---|
description | "The ID of the created page." |
---|
required | true |
---|
|
---|
namespace | type | "integer" |
---|
description | "The namespace of the page" |
---|
required | true |
---|
|
---|
title | type | "string" |
---|
description | "The title of the created page, in DB form with no namespace prefix" |
---|
required | true |
---|
|
---|
revId | type | "integer" |
---|
description | "The ID of the revision that created the page. Should match rev_id of the page's first revision." |
---|
required | true |
---|
|
---|
|
---|