Skip to content
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

Get active Log handlers #26

Open
Mandera opened this issue Feb 1, 2023 · 0 comments
Open

Get active Log handlers #26

Mandera opened this issue Feb 1, 2023 · 0 comments

Comments

@Mandera
Copy link
Collaborator

Mandera commented Feb 1, 2023

Problem: I want to see terminal output of pip install
I don't want to set it manually
Maybe I can disable capturing automatically if there's an active (stream) Log handler?
That would however fill only the terminal with the output, not the active handler's target
Should it fill the target too?
If there are multiple active then which one?
This is getting complicated.
Maybe do a simple version for now where it only prints in terminal if there's an active handler

Log("hi").configure_stream()
print(Log("root").logger.handlers)
@Mandera Mandera converted this from a draft issue Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant