PHP logging

EventLogging::logEvent( 'EventError', 14035058, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EventError": 14035058
			}
		}
	}
}

JavaScript logging

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

Schema:EventError

From Meta, a Wikimedia project coordination wiki
Revision 14035058
Jump to navigation Jump to search
description"A wrapper for Eventlogging events that caused an error somewhere in the Eventlogging pipeline."
properties
rawEvent
type"string"
requiredtrue
description"Encoded raw event string that caused an error."
message
type"string"
requiredtrue
description"Error message describing the error."
code
type"string"
requiredtrue
enum
"processor"
"consumer"
"validation"
description"Error code classifying the type of this error."
schema
type"string"
description"Title of event schema to which rawEvent belongs. 'unknown' if rawEvent cannot be parsed."
requiredtrue
revision
type"integer"
description"Revision ID of event schema to which rawEvent belongs. -1 if rawEvent cannot be parsed."
requiredtrue