Skip to main content

logging_init_with_options

Function logging_init_with_options 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn logging_init_with_options( trader_id: TraderId, instance_id: UUID4, level_stdout: LogLevel, level_file: LogLevel, directory_ptr: *const c_char, file_name_ptr: *const c_char, file_format_ptr: *const c_char, component_levels_ptr: *const c_char, is_colored: u8, is_bypassed: u8, print_config: u8, log_components_only: u8, max_file_size: u64, max_backup_count: u32, fileout_sync_on_flush: u8, buffered_stdout: u8, ) -> LogGuard_API
Expand description

Initializes logging with explicit logging I/O policy options.

§Safety

Has the same pointer validity requirements as logging_init.

§Panics

Panics if the component-level JSON cannot be parsed or the logger cannot be initialized.