NOTE: TerminalLoggers.jl supersedes this package. Please use TerminalLoggers.jl.
julia> using ConsoleProgressMonitor
julia> ConsoleProgressMonitor.install_logger();
Alternatively, use ConsoleProgressMonitor.with_progresslogger
to
temporary enable ConsoleProgressMonitor
.
Any logging events that are compatible with
Juno.progress
specification are displayed using ProgressMeter.Progress
.
julia> using Logging: @logmsg, LogLevel
julia> let id = gensym(:id)
for i = 1:10
sleep(0.1)
@logmsg LogLevel(-1) "iterating" progress=i/10 _id=id
end
@logmsg LogLevel(-1) "iterating" progress="done" _id=id
end