diff --git a/crates/librqbit/src/tracing_subscriber_config_utils.rs b/crates/librqbit/src/tracing_subscriber_config_utils.rs index b719a305..42ac2758 100644 --- a/crates/librqbit/src/tracing_subscriber_config_utils.rs +++ b/crates/librqbit/src/tracing_subscriber_config_utils.rs @@ -52,7 +52,8 @@ impl std::io::Write for Writer { pub struct InitLoggingOptions<'a> { pub default_rust_log_value: Option<&'a str>, pub log_file: Option<&'a str>, - pub log_file_rust_log: Option<&'a str>, + pub log_file_rust_log: &'a str, + pub structured_stdout: bool, } pub struct InitLoggingResult { @@ -107,7 +108,25 @@ pub fn init_logging(opts: InitLoggingOptions) -> anyhow::Result anyhow::Result<()> { LogLevel::Error => "error", }), log_file: opts.log_file.as_deref(), - log_file_rust_log: Some(&opts.log_file_rust_log), + log_file_rust_log: &opts.log_file_rust_log, + structured_stdout: opts.structured_stdout, })?; match librqbit::try_increase_nofile_limit() {