Extension:EventLogging/fr

The EventLogging extension makes it possible to collect structured data on how users interact with MediaWiki sites.

Fonctionnalités

 * EventLogging supports client-side logging from JavaScript and server-side logging from PHP.
 * Logging behavior can be dynamically configured using.
 * The events are JSON objects defined by versioned JSONSchemas stored in a schema git repository.
 * The extension does not include any back-end code for transporting, parsing, or loading these events. A separate service, EventGate, implements this functionality and deals with inserting events into Kafka. Events are then persisted in downstream datastores (e.g. Hive) via various ingestion pipelines. The details of these components are specific to Wikimedia Foundation's configuration.

EventLogging pour Wikimedia
The Wikimedia Foundation uses the EventLogging extension as part of a broader system for collecting, aggregating, storing, and analyzing user data within the limits set out by our privacy policy and data retention guidelines.

This page is about general use of the EventLogging extension. The Wikimedia Foundation uses EventLogging with WMF specific backend components and schema repositories. For Wikimedia specific and maintained documentation, see Analytics/Systems/EventLogging and Event Platform.

Configuring the schema location
By default, the extension will look for schemas on Meta-Wiki. The relevant default settings are:

To use local schemas, or schemas from the central wiki of your own wikifarm, you need to override these. E.g. to use the  namespace of the local wiki, set

(and ensure the user account that will create the schemas is autoconfirmed).

Tracer des événements avec EventLogging

 * - to developing and deploying EventLogging schemas, and more
 * - tips and suggestions for developers writing code to log events

Configuration développeur
As a developer, you will want to set up and use EventLogging on your development wiki to simulate its use in production.

Utiliser Docker
Voir 

Utiliser mediawiki-vagrant
If you develop using mediawiki-vagrant, everything you need is encapsulated in the  role. Pour l'activer, exécutez :

Pour les développements en JavaScript
If working on the JavaScript client, you'll need to install dependencies with  from the folder you're developing in. Puis vous pouvez utiliser  pour exécuter ESLint par exemple. The "How to run tests" section below points out how to see JavaScript test results.

Comment exécuter les tests
There are PHP tests, Python tests, and JavaScript tests.

To run JavaScript tests, visit Special:JavaScriptTest/qunit on your development wiki. (Voir ).

Pour exécuter les tests PHP, nous utilisons PHPUnit. Vérifiez qu'elle est installée, puis :