Page MenuHomePhabricator

Support filtering log events by level in $wgDebugLogGroups
Closed, ResolvedPublic

Description

Logging changes like the ones proposed in https://gerrit.wikimedia.org/r/#/c/174452 will introduce the use of a single log channel (logGroup) with varying severity levels. To accompany this MWLoggerLegacyLogger should be able to be configured to only log events of a given level or higher. Since $wgDebugLogGroups already supports the concept of a log group being associated with an array of configuration settings it should be trivial to introduce a 'level' setting that describes the minimum level to emit.

As an associated follow up, the WMF Monolog configuration should also use this level to configure the native level based filtering of most Monolog handlers.

Event Timeline

bd808 raised the priority of this task from to Medium.
bd808 updated the task description. (Show Details)
bd808 changed Security from none to None.
bd808 subscribed.

Change 182131 had a related patch set uploaded (by Legoktm):
Implement support for a minimum log level in $wgDebugLogGroups

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

Patch-For-Review

Legoktm moved this task from Untriaged to Needs Review on the Librarization board.
Legoktm moved this task from Backlog to Needs Review/Feedback on the MediaWiki-Core-Team board.

Change 182131 merged by jenkins-bot:
Implement support for a minimum log level in $wgDebugLogGroups

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