ProgressMeterLogging.jl

Author tkf
Popularity
4 Stars
Updated Last
4 Years Ago
Started In
October 2019

ConsoleProgressMonitor.jl: A ProgressMeter.jl-Logging.jl bridge

Build Status Codecov Coveralls

NOTE: TerminalLoggers.jl supersedes this package. Please use TerminalLoggers.jl.

Usage

Setup

julia> using ConsoleProgressMonitor

julia> ConsoleProgressMonitor.install_logger();

Alternatively, use ConsoleProgressMonitor.with_progresslogger to temporary enable ConsoleProgressMonitor.

Print progress meter

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

Used By Packages

No packages found.