PHP logging

EventLogging::logEvent( 'UploadWizardExceptionFlowEvent', 11772722, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"UploadWizardExceptionFlowEvent": 11772722
			}
		}
	}
}

JavaScript logging

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

Schema:UploadWizardExceptionFlowEvent

From Meta, a Wikimedia project coordination wiki
Revision 11772722
Jump to navigation Jump to search
description"Log of a Javascript error in UploadWizard, for funnel analysis."
properties
flowId
type"string"
requiredtrue
description"Identifies a flow of events (all events which happened in the same upload session, an upload session being someone clicking aroung in UploadWizard but not reloading the page). It is comprised of a timestamp and a random number."
flowPosition
type"integer"
requiredtrue
description"Position within an event flow (first event is 1 etc)."
message
type"string"
requiredtrue
description"Exception message."
url
type"string"
requiredtrue
description"URL of the file where the error occured."
line
type"number"
requiredtrue
description"Line number."
column
type"number"
description"Column number. Not all browsers support this."
stack
type"string"
description"Stack trace. Not all browsers support this."