Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/198065

Change subject: Add example code showing to completely disable logging
......................................................................

Add example code showing to completely disable logging

Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298
---
M includes/DefaultSettings.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/65/198065/1

diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php
index 8a4769d..2ad0686 100644
--- a/includes/DefaultSettings.php
+++ b/includes/DefaultSettings.php
@@ -5320,6 +5320,11 @@
  * 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

-- 
To view, visit https://gerrit.wikimedia.org/r/198065
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to