eventlogger module for ULS

Separating event logging out of ULS functionality. Event logging
is now loosely coupled with ULS. ULS core modules can emit an event
whenever EventLogging is required. The eventlogger module will act
on the event if configured.

Change-Id: I59dfcfb25c1acb85376b56239f2355ee7c4aff1e
This commit is contained in:
Santhosh Thottingal
2013-08-14 18:17:33 +05:30
committed by Amir E. Aharoni
parent 8defd1f4a8
commit 117cc5bf46
8 changed files with 215 additions and 98 deletions

View File

@@ -48,9 +48,13 @@ class UniversalLanguageSelectorHooks {
// Load the style for users without JS, to hide the useless links
$out->addModuleStyles( 'ext.uls.nojs' );
// If EventLogging integration is enabled, load the schema module.
// If EventLogging integration is enabled, load the schema module
// and the event logging functions module
if ( $wgULSEventLogging ) {
$out->addModules( 'schema.UniversalLanguageSelector' );
$out->addModules( array(
'schema.UniversalLanguageSelector',
'ext.uls.eventlogger',
) );
}
// If the extension is enabled, basic features (API, language data) available.