Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T1380
Change Details
Change Details
Old
New
Diff
**Old configuration** This configuration isn't valid since MediaWiki 1.24. ```lang=php,COUNTEREXAMPLE // IRC $wgRC2UDPAddress = 'localhost'; $wgRC2UDPPort = 8675; $wgRC2UDPPrefix = ''; ``` **New configuration** WithLog::getLoggerConfiguration() provides the logger configuration. This logger contains a way to send to UDP. Reference: * https://www.mediawiki.org/wiki/Manual:MonologSpi#Example_from_the_MediaWiki\Logger\MonologSpi_PHP_doc_comments with an UDP sample * https://www.mediawiki.org/wiki/Manual:$wgRCFeeds * https://www.mediawiki.org/wiki/Manual:IRC_RC_Bot
**Old configuration** This configuration isn't valid since MediaWiki 1.24. ```lang=php,COUNTEREXAMPLE // IRC $wgRC2UDPAddress = 'localhost'; $wgRC2UDPPort = 8675; $wgRC2UDPPrefix = ''; ``` **New configuration** Here the example given on MediaWiki for the new configuration: ```lang=php $wgRCFeeds['example'] = [ 'class' => UDPRCFeedEngine::class, 'uri' => 'udp://localhost:1336', 'formatter' => JSONRCFeedFormatter::class, 'omit_bots' => true, ]; ``` For IRC bot, instead of letting the bot convert the JSON, we can even have the message ready, with colors: ```lang=php 'wgRCFeeds' => [ ['libera'] = [ 'class' => UDPRCFeedEngine::class, 'uri' => "udp://$_ENV[WOLFPLEX_STREAM_UDP_URI]", 'formatter' => 'IRCColourfulRCFeedFormatter', 'add_interwiki_prefix' => false, 'omit_bots' => true, ], ], ``` Reference: * https://www.mediawiki.org/wiki/Manual:$wgRCFeeds **Salt** I'd suggest to configure it through Salt: `{{ nasqueron_services['viperserv'] }}:8675` to get 172.27.27.33:8675 The key `viperserv` needs to be added to pillar/services/table.sls
**Old configuration** This configuration isn't valid since MediaWiki 1.24. ```lang=php,COUNTEREXAMPLE // IRC $wgRC2UDPAddress = 'localhost'; $wgRC2UDPPort = 8675; $wgRC2UDPPrefix = ''; ``` **New configuration**
WithLog::getLoggerConfiguration() provides
Here the example given on MediaWiki for
the
logger
new
configuration
.
:
This logger contains a way to send to UDP.
```lang=php $wgRCFeeds['example'] = [ 'class' => UDPRCFeedEngine::class, 'uri' => 'udp://localhost:1336', 'formatter' => JSONRCFeedFormatter::class, 'omit_bots' => true, ]; ```
Reference:
For IRC bot, instead of letting the bot convert the JSON, we can even have the message ready, with colors: ```lang=php
* https://www.mediawiki.org/wiki/Manual:MonologSpi#Example_from_the_MediaWiki\Logger\MonologSpi_PHP_doc_comments with an UDP sample
'wgRCFeeds' => [
* https://www.mediawiki.org/wiki/Manual:$wgRCFeeds
['libera'] = [ 'class' => UDPRCFeedEngine::class, 'uri' => "udp://$_ENV[WOLFPLEX_STREAM_UDP_URI]",
* https://www.mediawiki.org/wiki/Manual:IRC_RC_Bot
'formatter' => 'IRCColourfulRCFeedFormatter',
'add_interwiki_prefix' => false, 'omit_bots' => true, ], ], ``` Reference: * https://www.mediawiki.org/wiki/Manual:$wgRCFeeds **Salt** I'd suggest to configure it through Salt: `{{ nasqueron_services['viperserv'] }}:8675` to get 172.27.27.33:8675 The key `viperserv` needs to be added to pillar/services/table.sls
Continue