-
Notifications
You must be signed in to change notification settings - Fork 11
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
Clean up the mess related to configure_from_file and configure_from_dict #76
Comments
Were you thinking of removing the need for those functions entirely? I’m ok with changing the way we configure Seqlog, but those functions are the result of several footgun experiences (remembering to replace the default logger class, remembering to choose correct feature flags) etc - Seqlog does a couple of nonstandard things to the logging library and I’m mindful of not breaking compatibility for existing consumers (where practical at least. Having said, if you are willing to do the work then I’m happy to work with you to find a solution that satisfies both our needs 🙂 |
Remember that you're still in a beta version, and according to semver your API might change twice a day. Once you however release 1.0.0, you're toast. Besides, my software is totally happy with being configured like this, running off my patch:
And the YAML file (later transformed is):
|
I know technically we’re pre-release (according to semver) but tbh I usually take that to mean “haven’t had time to review and decide if what’s there makes sense given existing consumers” (and I’m not sure who existing consumers are at the moment). But we can probably try it out and see what happens 🙂 |
Well, for once I am, and I'm running it in commercial production, so I feel confident enough to let it loose. |
Description
Those functions introduce more mess than they're worth. For example
configure_from_file
doesn't pass even half of it's kwargs toconfigure_from_dict
, and they don't even respect the parameters put in the YAML file, instead of preferring to add their own.This might require a version bump
What do you think, @tintoy ? Because I long abandoned any hope of using these functions and configure my Seq via
log_to_seq
I can do it in my spare time, so if you want me to, just assign me to it.
I postulate to re-read the docs on how to implement custom logging and rewrite it.
The text was updated successfully, but these errors were encountered: