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

Add a logging framework #12

Open
termi-official opened this issue Oct 17, 2023 · 2 comments
Open

Add a logging framework #12

termi-official opened this issue Oct 17, 2023 · 2 comments
Labels
architecture Issues affecting the structural and design aspects of the software feature New feature help wanted Extra attention is needed high-priority

Comments

@termi-official
Copy link
Owner

We should give better insights and control about what exactly is happening.

@termi-official termi-official added enhancement Enchancing existing aspects or quality of life good first issue Good for newcomers labels Oct 17, 2023
@termi-official termi-official removed the good first issue Good for newcomers label Nov 6, 2023
@termi-official termi-official added feature New feature help wanted Extra attention is needed architecture Issues affecting the structural and design aspects of the software high-priority and removed enhancement Enchancing existing aspects or quality of life labels Nov 20, 2023
@termi-official
Copy link
Owner Author

Snippet for future reference

using ProgressMeter
function print_progress_bars()
    p0 = Progress(100; desc="Timestep", offset=0, dt=0.0)
    p1 = ProgressThresh(0.0001; desc="Nonlinear: ", offset=2, dt=0.0)
    p2 = ProgressThresh(0.00001; desc="Inner Linear: ", offset=4)
    for i in 1:100
        update!(p0, i, showvalues=[(:t, i/100)])
        update!(p1, 1.0/i, showvalues=[(:i, i*i)])
        update!(p2, 1.0/i, showvalues=[(:i, i,)])
        sleep(0.025)
    end
    print(p2.core.output, "\n" ^ (p2.offset + p2.numprintedvalues))
end

@termi-official
Copy link
Owner Author

Probably I need a custom solution using StickyMessages or similar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
architecture Issues affecting the structural and design aspects of the software feature New feature help wanted Extra attention is needed high-priority
Projects
None yet
Development

No branches or pull requests

1 participant