log feature - support use of the log crate#239
log feature - support use of the log crate#239rusterize wants to merge 7 commits intorust-lang-deprecated:masterfrom
Conversation
|
NOTE: travis test with rust 1.10 fails because 1.10 does not support |
|
Can't this be put into a separate crate? This would be the better solution IMO as the feature is mostly orthogonal. |
|
@est31 It can't be put in a separate crate, because the BTW, one of the reasons for the new |
Hi,
This pull request allows the use of the
logcrate with error chain. It extendsResultandErrorwith functions to log the errors and their causes. Please let me know if you would be willing to accept it. Example:This will print the following given a
badurl:Features:
logfeature. If the feature is not used there is no cost.cargo test --features log && cargo test)error!,warn!,info!,debug!,trace!with the chainable functionsloge(),logw(),logi(),logd(),logt()Missing:
cargo test --features logto travis