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

@@ -81,13 +81,13 @@
disable: function () {
this.registry.isDirty = true;
this.registry.enable = false;
mw.uls.logEvent( { action: 'ime-disable' } );
mw.hook( 'mw.uls.ime.disable' ).fire();
},
enable: function () {
this.registry.isDirty = true;
this.registry.enable = true;
mw.uls.logEvent( { action: 'ime-enable' } );
mw.hook( 'mw.uls.ime.enable' ).fire();
},
isEnabled: function () {