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

Added log handler demo #1078

Merged
merged 2 commits into from
Jun 26, 2023
Merged

Conversation

BrianLandry
Copy link
Contributor

I wrote this up when using NiceGUI and thought it would be a good example to contribute back. It wraps a log element in a handler, allowing it to be attached to the standard python logging.Logger object. This routes everything logged with the logger to the log element as well as to stdout.

@falkoschindler falkoschindler added this to the 1.2.23 milestone Jun 26, 2023
@falkoschindler falkoschindler added the documentation Improvements or additions to documentation label Jun 26, 2023
@falkoschindler
Copy link
Contributor

Thanks a lot for this PR, @BrianLandry! That's a very nice application for ui.log!

@falkoschindler falkoschindler merged commit 4a398a4 into zauberzeug:main Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants