-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Adding logging #391
Adding logging #391
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'm ok with this! could you provide an example of a user being able to easily use the logger for stdout? I want to make sure that it's still easy to use in a Jupyter notebook setting.
also, are you planning to land multiple PR's?
This comment was marked as outdated.
This comment was marked as outdated.
@jerryjliu I updated a notebook, examples/vector_indices/SimpleIndexDemo.ipynb, with an example. Let me know what you think. I also added a line in the docs quickstart, and updated the rest of the notebooks. |
thanks @mcminis1! just a heads up that i do want to spend some time going through this PR to make sure that the user flows all make sense. i'll have some time to get to this later this week. apologies for the delay in advance, just wanted to let you know! |
@jerryjliu sure. I like logging for production use cases. For the notebook, I agree, it feels a little weird. I think they two of us have slightly different perspectives on library design. I'm probably more concerned about use in an application and you're more interested in use in a notebook. Usually objects have string methods So, after you think on it let me know what you want to do. Perhaps a good middle ground is leaving all the |
Yeah I don't disagree. I do want to make this good for application use - mostly just trying to think about how to also keep the notebook experience somewhat seamless. I will have some thoughts today or tomorrow! |
I just played around with it - actually I like this! I'm going to take a deeper look tonight. Thanks for putting together this PR @mcminis1, this is going to be super valuable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
heads up: i'm pushing some changes to fix linting. afterwards i'm down to land!
one followup after this, is that some logging uses the root logger whereas others uses the module logger. we should refactor to be consistent (and use module logger everywhere probably).
congrats! what's your twitter? happy to give you a shoutout on the release tomorrow |
#390