PHP logging

EventLogging::logEvent( 'EchoMail', 5467650, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EchoMail": 5467650
			}
		}
	}
}

JavaScript logging

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

Schema:EchoMail

From Meta, a Wikimedia project coordination wiki
Revision 5467650
Jump to navigation Jump to search
description"Logs notifications mailed to registered users with valid email addresses. Schema:Echo logs notifications staged for email delivery, while this schema logs messages actually delivered."
properties
version
type"string"
requiredtrue
description"References the full specifications of the current version of Echo (adding new notification types or changing the schema requires a version change), example: 1.1"
recipientUserId
type"integer"
requiredtrue
description"Recipient user ID"
emailDeliveryMode
type"string"
requiredtrue
enum
"single"
"bundle"
"daily_digest"
"weekly_digest"
description"Email delivery mode, determined by the notification settings and by user preferences"