From: Ori Livneh Date: Thu, 19 Mar 2015 20:16:40 +0000 (-0700) Subject: Add example code showing to completely disable logging X-Git-Tag: 1.31.0-rc.0~12041 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=7a9bee390a833bb063174d4b115056c80cae2187;p=lhc%2Fweb%2Fwiklou.git Add example code showing to completely disable logging Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 64cfd17d70..1df809e480 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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