Define a default Monolog logger if inexistant
authorSeb35 <seb35@seb35.fr>
Tue, 12 Jun 2018 10:43:35 +0000 (12:43 +0200)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 4 Apr 2019 04:03:45 +0000 (04:03 +0000)
commit44b66843e928e94b4ea8dea60ecde62ba7ec8d61
treeac0f554ccd18c78e7caaf1e8b0671b209342fc9f
parentdf115912224ea2b5343d56a3b33c60930c59eba3
Define a default Monolog logger if inexistant

In the array 'loggers' the key '@default' is assumed to be present,
hence be sure it is defined: this is the system default for MediaWiki,
it can be overwritten if desired.

This default php://stderr with level ERROR is inspired from Monolog’s
own default, which is php://stderr with level DEBUG: this is similar
but less violent for the average MediaWiki sysadmin.

Bug: T196906
Change-Id: Id74083fc20ddf906c40e6d149095e8ade4c68572
includes/debug/logger/MonologSpi.php