PHP logging

EventLogging::logEvent( 'PageMove', 7495717, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"PageMove": 7495717
			}
		}
	}
}

JavaScript logging

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

Schema:PageMove

From Meta, a Wikimedia project coordination wiki
Revision 7495717
Jump to navigation Jump to search
description"Logs a page move event"
properties
userId
type"integer"
description"User ID of the user performing the move (zero for anons)"
requiredtrue
userText
type"string"
description"Username or IP address of the user performing the move"
requiredtrue
pageId
type"integer"
description"The page ID of the page being moved"
requiredtrue
oldNamespace
type"integer"
description"The namespace of the page before it was moved"
requiredtrue
oldTitle
type"string"
description"The title of the page before it was moved, in DB form with no namespace prefix"
requiredtrue
newNamespace
type"integer"
description"The namespace of the page after it was moved"
requiredtrue
newTitle
type"string"
description"The title of the page after it was moved, in DB form with no namespace prefix"
requiredtrue
redirectId
type"integer"
description"The page ID of the redirect that was created if a redirect was created. Zero if no redirect was created."
requiredtrue
comment
type"string"
description"The comment provided by the moving user."
requiredtrue