PHP logging
EventLogging::logEvent( 'TemplateWizard', 20876919, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"TemplateWizard": 20876919
}
}
}
}
JavaScript logging
mw.track( 'event.TemplateWizard', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Tracking usage of the TemplateWizard extension." |
---|
properties | action | type | "string" |
---|
description | "The action that the user took that triggered the log event." |
---|
required | true |
---|
enum | "launch" |
"remove-template" |
"use-recent" |
"load-template" |
"insert-template" |
"cancel-dialog" |
"save-page" |
|
---|
|
---|
namespace_id | type | "integer" |
---|
description | "The ID of the page's namespace." |
---|
required | true |
---|
|
---|
page_title | type | "string" |
---|
description | "The title (without namespace) of the page on which the action occurred (may not exist)." |
---|
required | true |
---|
|
---|
revision_id | type | "integer" |
---|
description | "The page's current revision ID, for pages that already exist when TemplateWizard is used." |
---|
required | false |
---|
|
---|
template_names | type | "array" |
---|
description | "For 'remove-template', 'use-recent', 'insert-template', and 'save-page' actions, the titles of the templates that were acted upon." |
---|
required | false |
---|
items | type | "string" |
---|
description | "Template titles." |
---|
|
---|
|
---|
user_id | type | "integer" |
---|
required | false |
---|
description | "The user id, or 0 if logged out." |
---|
|
---|
user_edit_count | type | "integer" |
---|
required | false |
---|
description | "Total number of edits made by this user, or 0 if logged out." |
---|
|
---|
has_template_data | type | "boolean" |
---|
required | false |
---|
description | "If template data from the TemplateData extension was found and used for the template loaded or inserted." |
---|
|
---|
|
---|