PHP logging

EventLogging::logEvent( 'PageCreation', 7481635, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"PageCreation": 7481635
			}
		}
	}
}

JavaScript logging

mw.track( 'event.PageCreation', { /* ... */ } );

Schema:PageCreation

From Meta, a Wikimedia project coordination wiki
Revision 7481635
Jump to navigation Jump to search
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."
requiredtrue
userText
type"string"
description"Username or IP address of the user creating the page. Should match rev_user_text of first revision."
requiredtrue
pageId
type"integer"
description"The ID of the created page."
requiredtrue
namespace
type"integer"
description"The namespace of the page"
requiredtrue
title
type"string"
description"The title of the created page, in DB form with no namespace prefix"
requiredtrue
revId
type"integer"
description"The ID of the revision that created the page. Should match rev_id of the page's first revision."
requiredtrue