Add example code showing to completely disable logging
authorOri Livneh <ori@wikimedia.org>
Thu, 19 Mar 2015 20:16:40 +0000 (13:16 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Thu, 19 Mar 2015 22:10:37 +0000 (22:10 +0000)
Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298

includes/DefaultSettings.php

index 64cfd17..1df809e 100644 (file)
@@ -5320,6 +5320,11 @@ $wgDebugLogGroups = array();
  * inject an MWLoggerSpi instance into MWLoggerFactory and bypass the use of
  * this configuration variable entirely.
  *
+ * @par To completely disable logging:
+ * @code
+ * $wgMWLoggerDefaultSpi = array( 'class' => 'MWLoggerNullSpi' );
+ * @endcode
+ *
  * @since 1.25
  * @var array $wgMWLoggerDefaultSpi
  * @see MwLogger