pub fn event_from_record(
    record: &Record<'_>,
    with_stacktrace: bool
) -> Event<'static>
Expand description

Creates an event from a given log record.

If with_stacktrace is set to true then a stacktrace is attached from the current frame.