Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

logging to widget example request #5271

Closed
sedan-cell opened this issue May 18, 2024 · 1 comment
Closed

logging to widget example request #5271

sedan-cell opened this issue May 18, 2024 · 1 comment

Comments

@sedan-cell
Copy link

if possible can an example be added showing how to connect a widget to a logger of somekind to write log messages to a text widget or rewrite a single line (label maybe?) with the newest log messages. no examples currently show and none in the docs that i see. tracing would be a good start (as its so common and recommended) but bare log is probably fine too.

@hunger
Copy link
Member

hunger commented May 22, 2024

There is no dedicated log viewer widget or anything.

I'd just watch the log with whatever method is appropriate in Rust code (filesystem watcher, callback for the logging system, whatever:-) and then append the message to some Text widget.

@slint-ui slint-ui locked and limited conversation to collaborators May 22, 2024
@hunger hunger converted this issue into discussion #5287 May 22, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants