Cli/ref/mw docker eventlogging

< Cli | ref

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