pub unsafe fn init(config: &LogConfig, sentry: &SentryConfig)
Expand description
Initialize the logging system and reporting to Sentry.
§Safety
The function is not safe to be called from a multi-threaded program, due to modifications of environment variables.
§Example
let log_config = relay_log::LogConfig {
enable_backtraces: true,
..Default::default()
};
let sentry_config = relay_log::SentryConfig::default();
unsafe { relay_log::init(&log_config, &sentry_config) };