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

Sticky log messages #2971

Open
danielwe opened this issue Jul 29, 2024 · 2 comments
Open

Sticky log messages #2971

danielwe opened this issue Jul 29, 2024 · 2 comments
Labels
frontend Concerning the HTML editor good first issue Good for newcomers logging About `@info`, `@warn`, etc

Comments

@danielwe
Copy link
Contributor

I sometimes wish I could use @info to update an existing log message. Imagine the following, with each invocation of @info "..." sticky=true updating the same log card instead of adding a new one:

let
    keepgoing(i) = (i < rand(51:100))
    i = 1
    while keepgoing(i)
        @info "i = $i" sticky=true
        sleep(0.1)
        i += 1
    end
end

This is an example where it's impossible to calculate a % complete, so ProgressLogging is unsuitable, but I'd still like to see an indicator of forward progress. The sticky=true keyword seems to have some precedence from the old days of Juno, see JuliaLogging/ProgressLogging.jl#23 (comment).

@danielwe
Copy link
Contributor Author

Closing this in favor of a submission to the instant feedback box, sorry about the spam

@fonsp fonsp added good first issue Good for newcomers frontend Concerning the HTML editor logging About `@info`, `@warn`, etc labels Oct 10, 2024
@fonsp
Copy link
Owner

fonsp commented Oct 10, 2024

Interesting! Let's implement it!

@fonsp fonsp reopened this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Concerning the HTML editor good first issue Good for newcomers logging About `@info`, `@warn`, etc
Projects
None yet
Development

No branches or pull requests

2 participants