Crate trylog

source ·
Expand description

This crate provides inspect_or_log, unwrap_or_log and unwrap_or_default_log methods on all types implemented Try. They are useful if you want to log the error value.

Different log levels are chosen by calling different methods.

methodlevel
inspect_or_log*info
unwrap_or_default_log*warn
unwrap_or_log*error

Modules

Provides another implementations.

Traits

This trait provides the or-log methods.