jenkins-bot has submitted this change and it was merged. 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(-) Approvals: BryanDavis: Looks good to me, approved Smalyshev: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 64cfd17..1df809e 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: merged Gerrit-Change-Id: I965e1ff51fe31579cf24502b148d9fad971cd298 Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Ori.livneh <[email protected]> Gerrit-Reviewer: BryanDavis <[email protected]> Gerrit-Reviewer: Smalyshev <[email protected]> Gerrit-Reviewer: TTO <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
