Skip to content

Progress

MoreMaps.jl provides multiple options for tracking the progress of long-running map operations.

MoreMaps.LogLogger Type
julia
LogLogger(; nlogs::Int = 10, level::LogLevel=Info)
LogLogger(nlogs::Int = 10, level::LogLevel=Info)

A progress logger that displays progress information using @info messages. Shows periodic updates during mapping operations.

Arguments

  • nlogs::Int: Number of progress messages to display (default: 10)

Usage

julia
julia> using MoreMaps

julia> C = Chart(LogLogger(3))

julia> data = [1, 2, 3, 4, 5, 6];

julia> result = map(x -> (sleep(0.5); x^2), C, data); # Will show progress messages during execution

julia> result

julia> using Logging # Choose a log level

julia> C = Chart(LogLogger(4, Warn));

julia> map(x -> (sleep(0.5); x + 1), C, [1, 2, 3, 4]);
source