wiki.techinc.nl/includes/debug/logger
Aaron Schulz 99d5d2e8cc rdbms: cleanup getServer() and connection parameter fields in Database
Make getServer() always return a string, as documented, even with new
Database::NEW_UNCONNECTED handles that have yet to call open(). If the
'host' parameter to __construct() is ''/null, getServer() now returns
'localhost' instead of null. This avoids problems like fatal errors in
calls to TransactionProfiler::recordConnection().

Use Database constants for "connectionParams" field keys for better
static analysis.

Also:
* Add Database::getServerName() method that returns "readable" server
  names in the style of LoadBalancer::getServerName(). Note that the
  "hostName" field is already passed in from LoadBalancer.
* Migrate most getServer() callers to getServerName() for easier
  debugging and more readable logging.
* Also, normalize Database/LoadBalancer SPI logging context to use
  "db_server" and reduce logging code duplication in LoadBalancer.

Bug: T277056
Change-Id: I00ed4049ebb45edab1ea07561c47e226a423ea3b
2021-05-05 19:44:02 +00:00
..
monolog Drop Avro format option for monolog without deprecation 2021-03-25 08:26:17 -07:00
ConsoleLogger.php Declare dynamic properties 2019-09-14 15:21:26 +02:00
ConsoleSpi.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
LegacyLogger.php rdbms: cleanup getServer() and connection parameter fields in Database 2021-05-05 19:44:02 +00:00
LegacySpi.php phpunit: Add setNullLogger() and make tests default to LegacySpi 2020-04-07 22:00:13 +00:00
LogCapturingSpi.php build: Remove unneeded phpcs:ignore on false positives 2021-04-29 23:50:07 +02:00
LoggerFactory.php
MonologSpi.php Do not use a NullLogger when no handler is declared 2021-04-06 01:51:18 +02:00
NullSpi.php Remove duplicate variable name from class property PHPDocs 2019-12-02 12:58:29 +00:00
Spi.php Replace "@stable for implementation" with "@stable to implement" 2020-07-13 11:05:49 +02:00