Function log_error_chain

Source
pub fn log_error_chain<E: Error>(module: &str, context: &str, error: E)
Expand description

Logs an error and its entire chain of sources with a given context message.

This function provides a standardized way to log errors. It logs a high-level context message, followed by the primary error, and then traverses and logs every underlying source error.

ยงArguments

  • module - module name where the error logging was triggered.
  • context - additional description of error
  • error - Top level error