From 7a9bee390a833bb063174d4b115056c80cae2187 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Thu, 19 Mar 2015 13:16:40 -0700 Subject: [PATCH] Add example code showing to completely disable logging Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298 --- includes/DefaultSettings.php | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.20.1