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
How to capture INFO from logging? #825
Comments
I believe the issue here is that
Python 3.8 also adds a 'force' argument that basically does exactly this: This might not interact well if other loggers are already initialized / used, but something of this form may be worth exploring. |
Hi @kevinushey , your solution works perfectly. By adding the chunk of your codes before invoking python function, BTW, with your new commit, will this function be improved to capture the logs directly? Thanks! |
Yes, I think things should "just work" in the development version of |
Greeting,
I tried to use
py_capture_output
to capture INFO from a python package, but the return is empty. I couldn't change the python functions. Could you please help to capture the info? Thanks!Here is a simplified example,
log.py
The text was updated successfully, but these errors were encountered: