Manual talk:MonologSpi.php

From MediaWiki.org
Jump to navigation Jump to search

Minimal example?[edit]

It would be really helpful to explain the defaults, and give an example configuration that overrides as little as possible. The maximal cases are covered here, but it's generally bad practice to unnecessarily override defaults, because your configuration will break as those defaults change.

Adamw (talk) 19:30, 10 August 2015 (UTC)

Yes Done @Adamw: I’ve added a minimal useful example. It’s still fairly long because, as far as I can tell from the MonologSpi code, there are no defaults, so even a simple line formatter has to be configured explicitly. --Lucas Werkmeister (WMDE) (talk) 12:46, 21 July 2017 (UTC)
Another thing useful is a small note explaining how the log reaches LogStash (or a pointer to such a note), for example a schema log → redis → <some observer component> → ElasticSearch → LogStash. --Dereckson (talk) 23:54, 21 March 2018 (UTC)
There is a slightly out of date, but mostly correct, explanation of the Wikimedia production cluster configuration at wikitech:Logstash. The current configuration uses the MediaWiki\Logger\Monolog\SyslogHandler to send debug log events to Logstash. The log events are processed by various Logstash modules and then finally stored in an Elasticsearch cluster. The data from that cluster is searchable using a Kibana instance. This data pipeline is not the only way that MediaWiki debug log events could be fed into Elasticsearch, but it is one with working (but complicated) examples. --BDavis (WMF) (talk) 03:21, 22 March 2018 (UTC)

How to not log[edit]

Would be helpful to give an example where @default is redirected to null and only specific channels are logged. Nikerabbit (talk) 15:06, 1 November 2018 (UTC)