You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make logLevel an instance variable instead of static #173
We use this in an app with two different types of loggers, A and B which inherits from A. We are not able to set their log levels independently because the log level is statically defined on the class Log. If it were instance-level, then this connection would be broken and loggers would behave as expected when setting them to different levels.
+1 or at least have a global for general-purpose static logging, but let you override it if you want to instantiate loggers other than the default/shared logger. Progressive disclosure.
Activity
ZevEisenberg commentedon Nov 4, 2019
+1 or at least have a global for general-purpose static logging, but let you override it if you want to instantiate loggers other than the default/shared logger. Progressive disclosure.
chrisballinger commentedon Sep 25, 2020
We just got bit by this again today.
chrisballinger commentedon Mar 15, 2021
If we're keeping score, someone else got bit by this again today.
ZevEisenberg commentedon Mar 16, 2021
Doooo eeeeet