-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make logLevel an instance variable instead of static #173
Comments
+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. |
We just got bit by this again today. |
If we're keeping score, someone else got bit by this again today. |
Doooo eeeeet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use this in an app with two different types of loggers,
A
andB
which inherits fromA
. We are not able to set their log levels independently because the log level is statically defined on the classLog
. If it were instance-level, then this connection would be broken and loggers would behave as expected when setting them to different levels.The text was updated successfully, but these errors were encountered: