Jump to content

Schema:CentralAuth

PHP logging

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

extension.json setup for JavaScript logging

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

JavaScript logging

mw.track( 'event.CentralAuth', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 25765493
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