Registry / logging / log-panics

log-panics

JSON →
library2.1.0rscratesunverified

A panic hook that logs panic messages via the log crate instead of printing to stderr.

# Cargo.toml [dependencies] log-panics = "2.1.0"
INSTALL
IMPORT
SIG · LOG-PANICS
L
log-panics
loggingrustv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

init
use log_panics::init;

Installs a panic hook that logs panic messages.

use log_panics; log_panics::init(); // Install the panic hook // Now panics will be logged via the log crate panic!("This panic will be logged!");
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Resources
log-panics — cargo add log-panics · libregistry