Function cgl_rs::logger::init

source ·
pub fn init(enable_console_logging: bool)
Expand description

Initializes the logger.

NOTE: This is automatically called when you call cgl_rs::init(). So it’s not necessary to call this function manually, unless you are doing something special, like creating a seperate context for some dll or stuff.

Arguments

  • enable_console_logging - A boolean value indicating whether to enable console logging or not.

Example

cgl_rs::logger::init(true);
// ...
cgl_rs::logger::shutdown();