Cli/ref/mw docker eventlogging
mw docker eventlogging[edit]
eventlogging service
Synopsis[edit]
Eventlogging service[edit]
You probably want to have the following extensions enabled for eventlogging to function.
wfLoadExtensions( [
'EventBus',
'EventStreamConfig',
'EventLogging',
'WikimediaEvents'
] );
Using this will automatically configure a eventlogging server for MediaWiki.
$wgEventServices = [ '*' => [ 'url' => 'http://eventlogging:8192/v1/events' ] ];
$wgEventServiceDefault = '*';
$wgEventLoggingStreamNames = false;
$wgEventLoggingServiceUri = "http://eventlogging.mwdd.localhost:" . parse_url($wgServer)['port'] . "/v1/events";
$wgEventLoggingQueueLingerSeconds = 1;
$wgEnableEventBus = defined( "MW_PHPUNIT_TEST" ) ? "TYPE_NONE" : "TYPE_ALL";
Viewing logs[edit]
Checkout the logs of this service in order to see events coming in.
Documentation[edit]
Options inherited from parent commands[edit]
-c, --context string The context to use (default "default") --help Help for this command --no-interaction Do not ask any interactive questions -v, --verbose count Increase output verbosity. Example: --verbose=2 or -vv
SEE ALSO[edit]
- mw docker - The MediaWiki-Docker-Dev like development environment
- mw docker eventlogging create - Create the containers
- mw docker eventlogging destroy - Destroy the containers
- mw docker eventlogging exec - Execute a command in the main container
- mw docker eventlogging expose - Expose a port in a running container
- mw docker eventlogging image - Interact with the image used for the service
- mw docker eventlogging start - Start the containers
- mw docker eventlogging stop - Stop the containers