wiki.techinc.nl/includes/debug
Kosta Harlan 5734b8c1b9
LegacyLogger: Emit to stderr if MW_LOG_STDERR is set
Why:

- Developers could reasonably expect that `composer serve` would provide
  logs in the terminal used for serving the app

What:

- Set an environment variable, MW_LOG_STDERR, and check this in
  LegacyLogger which is already loaded in DevelopmentSettings for
  installs using the local development quickstart guidelines. If the env
  variable is set, and LegacyLogger is already in use for writing to log
  files, then use error_log() to also write to stderr

Bug: T347347
Change-Id: I7ff8ec1664d5ee9ca0487b3ed363b43fe235b738
2023-12-21 09:38:46 +01:00
..
logger LegacyLogger: Emit to stderr if MW_LOG_STDERR is set 2023-12-21 09:38:46 +01:00
DeprecatablePropertyArray.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
DeprecationHelper.php debug: Improve docs, fix ingroup tags, clean up tests 2023-10-05 11:54:30 +00:00
MWDebug.php Replace $wgCommandLineMode checks with MW_ENTRY_POINT in developer code 2023-12-14 15:24:48 +01:00