Report
Report is a simple logging and error-reporting library. It is designed to be:
- Simple: There is almost no boilerplate required. It is not required to define error enums or implement traits.
- Compatible: This library will work with other libraries that don't use the custom
ResultorErrortypes from this crate. - Efficient: Strings are only formatted when it is clear that they will actually be printed.
Example
use ;
use File;
use ;
Output
╭───────────────────────────────────────────────────────────────────────────────────────╮
│ Running experinments │
├─┬─────────────────────────────────────────────────────────────────────────────────────┤
│ ├── Running task one on data.txt │
│ │ ╰── error: No such file or directory (os error 2) │
│ ╰── Running task two on Cargo.toml │
│ ├── info: File size: 552 │
│ ├── info: Found section: [package] │
│ ├── info: Found section: [workspace] │
│ ├── info: Found section: [dependencies] │
│ ╰── info: Found section: [features] │
╰───────────────────────────────────────────────────────────────────────────────────────╯
Feature Flags
| Flag | Description |
|---|---|
unicode |
Use unicode box drawing characters. |
color |
Use colors for the log level. |
frame |
Draw a frame around every report |