Module error

Source
Expand description

Error handling utilities for rust-loguru

  • Extension traits for Result/Option
  • Error chain capturing
  • Panic hook installation
  • Source location capture
  • Helper methods for error logging

Structs§

ContextError
Error type with context

Traits§

OptionExt
Extension trait for Option to add logging
ResultExt
Extension trait for Result to add logging and context

Functions§

error_chain
Capture the error chain as a Vec of Strings
install_panic_hook
Install a panic hook that logs panics with location and payload