relay_log

Function init

source
pub fn init(config: &LogConfig, sentry: &SentryConfig)
Expand description

Initialize the logging system and reporting to Sentry.

ยงExample

let log_config = relay_log::LogConfig {
    enable_backtraces: true,
    ..Default::default()
};

let sentry_config = relay_log::SentryConfig::default();

relay_log::init(&log_config, &sentry_config);