logo
pub fn exception_from_record(
    record: &Record<'_>,
    values: &OwnedKVList
) -> Event<'static>
Expand description

Creates an exception [Event] from the Record.

Examples

let args = format_args!("");
let record = slog::record!(slog::Level::Error, "", &args, slog::b!());
let kv = slog::o!().into();
let event = sentry_slog::exception_from_record(&record, &kv);