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

Using standard python logger #4663

Closed
takeda opened this issue Jun 19, 2024 · 3 comments
Closed

Using standard python logger #4663

takeda opened this issue Jun 19, 2024 · 3 comments

Comments

@takeda
Copy link

takeda commented Jun 19, 2024

Is there a reason why textual implements its own logging?

Would it be possible to use standard python logger, and have an option to redirect log via Textual LogHandler? I feel like that would be better, as it is more powerful, allows to pass context variables and most importantly it is standardized.

Copy link

We found the following entry in the FAQ which you may find helpful:

Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.

This is an automated reply, generated by FAQtory

@willmcgugan
Copy link
Collaborator

Textual's log methods can log things that aren't necessarily strings.

You can use Python's logging system in your app. You can write to the dev tools with https://textual.textualize.io/guide/devtools/#textual-log, or configure it in any way you wish

Copy link

Don't forget to star the repository!

Follow @textualizeio for Textual updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants