TerminalLoggers.jl
TerminalLoggers.jl copied to clipboard
Logging sinks and utilites for interactive terminals
Running the following snippet (taken from the package docs): ```julia global_logger(TerminalLogger(right_justify=120)) using ProgressLogging @progress for i=1:100 if i == 50 @info "Middle of computation" i elseif i == 70 println("Normal...
#4 needs to go first, but this already (somewhat) works. Example: ```julia using Logging using TerminalLoggers using VegaDatasets using Tables using Printf using ProgressLogging with_logger(TerminalLogger()) do limit = 3 @progress...
MWE ```julia struct MyIterator end function Base.iterate(itr::MyIterator) # @info "itearte(itr::MyIterator)" itr return (:first, nothing) end Base.iterate(::MyIterator, ::Nothing) = nothing function Base.show(io::IO, ::MIME"text/plain", itr::MyIterator) print(io, "MyIterator: ") join(io, itr, ", ")...
See:  At around `i = 10` I resized the terminal by splitting tmux window. As you can see, `@show` started to overwrite the line.
When writing https://github.com/JuliaCI/PkgBenchmark.jl/pull/104, I realized that sticky messages do not work well with sub-processes. An example: ```julia using Logging using ProgressLogging using TerminalLoggers with_logger(TerminalLogger()) do @progress for _ in 1:10...
I had this segfault issue https://github.com/JuliaLang/julia/issues/34620 while writing https://github.com/tkf/TmuxDisplays.jl. I think we'd better "vendor" https://github.com/JuliaLang/julia/pull/34623 and then define some kind of fallback when the stream is closed. See also https://github.com/JuliaLang/julia/issues/26687
I’m logging an interpolated string, but underlines in the path are being interpreted as markdown by the logging: ```julia julia> path = "some_path_foo" "some_path_foo" julia> @info "writing to $path" [...
In the SciML EnsembleProblem it is possible to report progress from hundreds if not thousands of parallel simulations. This is a case that is not at all handled well by...
Windows Terminal added support for [ConEmu's OSC 9;4 escape sequences](https://github.com/microsoft/terminal/pull/8055) a while ago to trigger various nice UI things in the terminal. In particular, one can show a progress bar...