PHP logging

EventLogging::logEvent( 'EditDebugging', 8955857, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EditDebugging": 8955857
			}
		}
	}
}

JavaScript logging

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

Schema:EditDebugging

From Meta, a Wikimedia project coordination wiki
Revision 8955857
Jump to navigation Jump to search
description"Internal and peripheral edit-related events. All events are logged server-side."
properties
action
type"string"
requiredtrue
enum
"failure-details"
"rebase"
"rollback"
description"The event being recorded: failure-details: extra information about save failures rebase: an edit was successfully 3-way merged rollback: page content was rolled back to a previous revision"
editSessionId
type"string"
requiredtrue
description"A string of 32 alphanumeric characters, unique to the current edit session; used for grouping events."
failureReason
type"string"
enum
"article-deleted"
"conflict"
"core-spamblocked"
"hook-aborted"
"lost-session"
"overflow"
"parse-error"
"rate-limited"
"title-protected"
"summary-required"
"user-blocked"
description"Detailed failure code, when available."
otherOldid
type"integer"
description"On rebase, this will be the revId of the newer ancestor we have 3-way merged with."
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."
rollbackContentsId
type"integer"
description"On rollback, this is the revId of the old contents we will be use to replace the current page text."
userId
type"integer"
description"The editor's user ID, if logged in."
userAgent
type"string"
description"User-Agent string, if available"