PHP logging

EventLogging::logEvent( 'EditLifecycle', 8958280, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EditLifecycle": 8958280
			}
		}
	}
}

JavaScript logging

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

Schema:EditLifecycle

From Meta, a Wikimedia project coordination wiki
Revision 8958280
Jump to navigation Jump to search
description"Edit session lifecycle events. Coarse-grained tracking of an edit session, recorded from both client and server."
properties
action
type"string"
requiredtrue
enum
"begin"
"failure"
"reload"
"submit"
"success"
description"The edit lifecycle event being recorded: begin: Sending an edit page impression and assigning a new edit session token failure: changes could not be stored reload: the edit page is being rendered, but this is not the first edit impression of the session submit: the editor has attempted to save their changes success: new changes were accepted"
editSessionId
type"string"
description"A token unique to the current edit session; used for grouping events."
isAPI
type"boolean"
requiredtrue
description"True if the request came through an API call."
isMobile
type"boolean"
requiredtrue
description"True if the request came from a mobile context."
newRevId
type"integer"
description"Newly saved revision of the page, on success."
pageId
type"integer"
description"ID of the page the user is attempting to edit, if available."
pageNs
type"integer"
description"Namespace ID of the page the user is attempting to edit."
pageName
type"string"
requiredtrue
description"Full title of the page the user is attempting to edit, including namespace (wgPageName format). This is needed to log edit activity on redlinks where pageId and revId are not available."
revId
type"integer"
description"Current revision of the page the user is currently attempting to edit."