aboutsummaryrefslogtreecommitdiffstats
path: root/docs/mwlogger.txt
diff options
context:
space:
mode:
authorBryan Davis <bd808@wikimedia.org>2014-10-22 21:53:14 -0600
committerBryan Davis <bd808@wikimedia.org>2014-10-25 16:00:06 -0600
commit51b37035b3ec9befc869e629286b6f8ea4c29437 (patch)
tree2e4b82f1e3bee6564c442058a7922f03bfa66ba2 /docs/mwlogger.txt
parent75a5ef872ae4c4c7c1080bbb220ad2d1be33c165 (diff)
downloadmediawikicore-51b37035b3ec9befc869e629286b6f8ea4c29437.tar.gz
mediawikicore-51b37035b3ec9befc869e629286b6f8ea4c29437.zip
Make $wgMWLoggerDefaultSpi more expressive
Allow $wgMWLoggerDefaultSpi to specify a more expressive object creation by introducing a new ObjectFactory class which can process an array of instructions to call either an object constructor or a factory method with an array of arguments. This allows removal of the $wgMWLoggerMonologSpiConfig global variable in favor of configuration using $wgMWLoggerDefaultSpi. New classes introduced: ; ObjectFactory : Construct objects from configuration instructions. Change-Id: If56cce5dcb1ad5712e238d6e2dab809a351f79be
Diffstat (limited to 'docs/mwlogger.txt')
-rw-r--r--docs/mwlogger.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/docs/mwlogger.txt b/docs/mwlogger.txt
index 9964e8b67176..5a3e249b3daf 100644
--- a/docs/mwlogger.txt
+++ b/docs/mwlogger.txt
@@ -50,10 +50,8 @@ a more feature rich logging configuration.
== Globals ==
; $wgMWLoggerDefaultSpi
-: Default service provider interface to use with MWLogger
-; $wgMWLoggerMonologSpiConfig
-: Configuration for MWLoggerMonologSpi describing how to configure the
- Monolog logger instances.
+: Specification for creating the default service provider interface to use
+ with MWLogger
[0]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
[1]: https://github.com/Seldaek/monolog