Skip to main content

json_panic_line

Function json_panic_line 

Source
pub(crate) fn json_panic_line(panic_info: &PanicHookInfo<'_>) -> String
Expand description

Returns a panic as one JSON log line, without a line break.

The line has the same stable keys as other JSON log lines, with level ERROR and severity CRITICAL, and the panic in exception.type, exception.message, and exception.stacktrace.