Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger improvements #41

Merged
merged 2 commits into from Jul 13, 2015
Merged

Logger improvements #41

merged 2 commits into from Jul 13, 2015

Conversation

d00rman
Copy link
Contributor

@d00rman d00rman commented Jul 13, 2015

The logger uses the _levelMatcher private property to determine if a log entry should be logged or not. However, the threshold is set based on conf.level, without taking into account individual stream levels. That causes log entries for levels lower than the global level not to be logged in the individual log streams.

This PR performs the check to find the minimum log level to use correctly based on individual stream settings. Additionally, it explicitly appends the level property to streams lacking it. The stream conversion has been slightly improved to ease the addition of new stream converters, and converters for stdout and stderr have been added.

Bug: T105500

The logger uses the _levelMatcher private property to determine if a log
entry should be logged or not. However, the threshold is set based on
conf.level, without taking into account individual stream levels. That
causes log entries for levels lower than the global level not to be
logged in the individual log streams.

This commit performs the check to find the minimum log level to use
correctly based on individual stream settings. Additionally, it
explicitly appends the level property to streams lacking it.
@d00rman
Copy link
Contributor Author

d00rman commented Jul 13, 2015

cc @gwicke @eevans

gwicke added a commit that referenced this pull request Jul 13, 2015
@gwicke gwicke merged commit 057f2b6 into wikimedia:master Jul 13, 2015
@d00rman d00rman deleted the logger-improvements branch October 20, 2015 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants