An open API service indexing awesome lists of open source software.

https://github.com/berrysoft/trylog

Log if `Err` or `None`.
https://github.com/berrysoft/trylog

Last synced: 9 months ago
JSON representation

Log if `Err` or `None`.

Awesome Lists containing this project

README

          

# trylog
This crate is inspired by [`tracing-unwrap`](https://crates.io/crates/tracing-unwrap),
and provides `inspect` and `unwrap_or_default` series of methods.

It also supports all types implemented `Try`.

## Log level
| method | level |
| ------------------------ | ----- |
| `inspect_or_log*` | info |
| `unwrap_or_default_log*` | warn |
| `unwrap_or_log*` | error |