Skip to content

Commit 339eb78

Browse files
authored
Merge pull request #4 from tkf/readme
Add a short description in README
2 parents 6b2d3f4 + 738e04f commit 339eb78

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,25 @@
1-
# ProgressLogging
1+
# ProgressLogging: a package for defining progress logs
22

33
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://junolab.github.io/ProgressLogging.jl/stable)
44
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://junolab.github.io/ProgressLogging.jl/dev)
55
[![Build Status](https://travis-ci.com/JunoLab/ProgressLogging.jl.svg?branch=master)](https://travis-ci.com/JunoLab/ProgressLogging.jl)
66
[![Codecov](https://codecov.io/gh/JunoLab/ProgressLogging.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JunoLab/ProgressLogging.jl)
77
[![Coveralls](https://coveralls.io/repos/github/JunoLab/ProgressLogging.jl/badge.svg?branch=master)](https://coveralls.io/github/JunoLab/ProgressLogging.jl?branch=master)
8+
9+
ProgressLogging.jl is a package for defining _progress logs_. It can
10+
be used to report progress of a loop/loops with time-consuming body:
11+
12+
```julia
13+
julia> using ProgressLogging
14+
15+
julia> @progress for i in 1:10
16+
sleep(0.1)
17+
end
18+
```
19+
20+
This package does not contain any _progress monitors_ for visualizing
21+
the progress of the program. You need to install a package supporting
22+
progress logs created by ProgressLogging.jl API. For example:
23+
24+
* [Juno](https://junolab.org/)
25+
* [ConsoleProgressMonitor.jl](https://github.com/tkf/ConsoleProgressMonitor.jl)

src/ProgressLogging.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module ProgressLogging
22

3+
# Use README as the docstring of the module:
4+
@doc read(joinpath(dirname(@__DIR__), "README.md"), String) ProgressLogging
5+
36
export @progress, @withprogress, @logprogress
47

58
using Logging: Logging, @logmsg, LogLevel

0 commit comments

Comments
 (0)