-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Made Handle accessible on logger enabling multilog environments #393
base: main
Are you sure you want to change the base?
Conversation
…x() functions, enabling multilog environments.
Can I please have an opinion whether the direction taken by these few lines of changes looks reasonable to any main contributor? |
@izolyomi For context we have been slowly exposing more internals, this is not a use case that was considered. |
My only issue with this impl is the env mode, there are a number of other places that would also set the max log level and therefore it would be inconsistent. I think the only way we can get away with this without a major version or inconsistent api is either add a As for |
Thank you for the review and the reply, I agree that the environment mode was not fully consistent. Considering other possibilities some more, I've realized that whenever the logger is externally reconfigured then it can be the caller's responsibility to keep the global log level consistent by calling I think the PR became trivial now, is it acceptable in the current form? |
Is there any planned timeline to review and hopefully merge the dozen lines of the updated PR? |
Based on the discussion in issue #390 this is a proof-of-concept experiment that enables using log4rs in a multilog environment.
Probably naming, documentation and others can still be improved a lot, what do you think?