PHP logging

EventLogging::logEvent( 'CentralAuth', 5690875, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CentralAuth": 5690875
			}
		}
	}
}

JavaScript logging

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

Schema:CentralAuth

From Meta, a Wikimedia project coordination wiki
Revision 5690875
Jump to navigation Jump to search
description"Logs events related to CentralAuth"
properties
version
type"integer"
requiredtrue
description"Version number"
action
type"string"
requiredtrue
enum
"sul2-autologin-login"
"sul2-autologin-fallbacklogin"
description"Actions involving CentralAuth. * sul2-autologin-login: User loaded html to autologin to sister projects * sul2-autologin-fallbacklogin: User was not logged in when they visited a sister project, and their browser was logged in from the central wiki"
userId
type"integer"
description"User ID (events from anonymous users are not logged)"
requiredtrue