task_log
task_log is a task-based logger.
Installing
Just add task_log = 0.1.6 to your Cargo.toml's dependency section.
Example
Let's get right to the chase. What does using this logger look like?
use Result;
use Duration;
use ;
use task;
As you can see we provide a task to run and a description of what that task is doing. When we run this code we get the following output.

To see more examples see the examples folder.
Configuration
You can configure task_log's task function using a struct called ConfigBuilder. Here is an example of using ConfigBuilder:
use thread;
use Duration;
use ;
To learn more about ConfigBuilder please reference the docs.rs documentation.
Future Plans
Here are some features I'm hoping to implement in the future:
- Run time: Output the run time so far in the
RUNNINGprefix. - Spinners: Show a loading symbol for long-running tasks.
- File output: Allow writing of logs to a file.
- Double log lines: Option to output log to a second line instead of replacing the first one.