Page MenuHomePhabricator

Use normalised log message for "Loading global options"
Closed, ResolvedPublic


The current logging performs the string substitution directly in the code, which means the messages cannot be grouped, counted, or easily excluded from a larger result set in Logstash.

For example:

Screen Shot 2018-06-03 at 15.12.21.png (604×1 px, 99 KB)

It is common to use PSR-3/Monolog "context" for these, so that the normalised_message (the original string passed to info()) is the same across all messages, while still having the same message output as before. See an example.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 437148 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/extensions/GlobalPreferences@master] Parameterize debug log entry

Change 437148 merged by jenkins-bot:
[mediawiki/extensions/GlobalPreferences@master] Parameterize debug log entry

Legoktm claimed this task.