Function cgl_rs::logger::set_context
source · pub fn set_context(context: *const CGL_logger_context)
Expand description
Sets the logger context.
Safety
This function is unsafe because it takes a raw pointer to the logger context.
Arguments
context
- A raw pointer to the logger context.
Example
cgl_rs::logger::init(true);
let context = cgl_rs::logger::get_context();
cgl_rs::logger::set_context(context);
// ...
cgl_rs::logger::shutdown();