Skip to content

tkf/ConsoleProgressMonitor.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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