Extension:EventLogging/Events

Any code logging an event must declare a schema for it, see m:Special:PrefixIndex/Schema: for a list.

Client-side events
Several extensions are logging client-side events using this extension's  JavaScript function: the "Create account" form, Getting started, mobile events, ...

Register the version of schema you are logging against
This is done here in the MobileFrontend https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/master/includes/MobileFrontend.hooks.php#L865

Other schemas appear here:

https://github.com/wikimedia/mediawiki-extensions-WikimediaEvents/blob/master/WikimediaEvents.php

Server-side events
We are logging some events on the server using EventLogging's  by writing JSON-formatted events to a log:
 * Account creation using m:Schema:ServerSideAccountCreation

Note logging of article creation and edits was disabled in December 2012.