PHP logging

EventLogging::logEvent( 'CommandInvocation', 15243810, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CommandInvocation": 15243810
			}
		}
	}
}

JavaScript logging

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

Schema:CommandInvocation

From Meta, a Wikimedia project coordination wiki
Revision 15243810
Jump to navigation Jump to search
description"Record invocation of different commands (primarily from tool labs) by users"
properties
username
type"string"
requiredtrue
description"Name of the user running the command"
command
type"string"
requiredtrue
description"Name of command being called (jsub, webservice, jstart, etc)"
commandline
type"string"
requiredtrue
description"The entire commandline used to invoke the command"
parentcommandline
type"string"
requiredtrue
description"The entire commandline of the parent process that invoked the command"
hostname
type"string"
requiredtrue
description"fqdn of host from in which this command was run"