Expand description

A crate which logs panics instead of writing to standard error.

The format used is identical to the standard library’s.

Because logging with a backtrace requires additional dependencies, the with-backtrace feature must be enabled. You can add the following in your Cargo.toml:

log-panics = { version = "2", features = ["with-backtrace"]}

To use, call log_panics::init() somewhere early in execution, such as immediately after initializing log, or use the Config builder for more customization.

Structs

Configures the panic hook, ending with initialization.

Enums

BacktraceModewith-backtrace

Determines how backtraces will be displayed.

Functions

Initializes the panic hook with the default settings.