get_logs_traceback

Function get_logs_traceback 

Source
pub fn get_logs_traceback(
    min_level: Option<LogLevel>,
    channels: Option<Vec<String>>,
) -> Traceback
Expand description

Retrieves a traceback of logs based on the minimum log level and channel filter. Note that the traceback! macro is the preferred method to do this in the public API.

use breadcrumbs::{get_logs_traceback, LogLevel};
let traceback = get_logs_traceback(Some(LogLevel::Warn), Some(vec![String::from("test_channel")]));