-
Notifications
You must be signed in to change notification settings - Fork 49
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
Expose configFromEnv
as a public method
#122
Comments
i second this. i'd like to be able to look at which, if any, subsystems have logging enabled, and their levels. my use case wants a few things -
i would be willing to contribute a pr for this if i can get a green light^^ |
@elijaharita just checked with maintainers: you have a 🍏🚦to PR, let's do it! |
@ribasushi okay, proposal, here we go we can leave pretty simple but it gives the library user a ton more control without breaking anything. what u think? |
This is dicey... do you really need this? |
great! as for dicey, how so? do you have an alternative idea for allowing the user to update config with code? |
actually, calling SetupLogging again could be done in the library's current state too. is there even a way to configure the logger if not like that? @ribasushi |
I re-read your requirements, I missed the requirement to write at runtime ( 2 ) |
@elijaharita is this closed by #129? |
Closing as resolved. |
There is a legitimate use-case to be able to examine the result of
configFromEnv
from an external caller. See discussion here for details: filecoin-project/lotus#6743 (comment)The text was updated successfully, but these errors were encountered: