Function cgl_rs::logger::get_context

source ·
pub fn get_context() -> *const CGL_logger_context
Expand description

Returns a pointer to the logger context.

Safety

This function is unsafe because it returns a raw pointer to the logger context.

Example

cgl_rs::logger::init(true);
let context = cgl_rs::logger::get_context();
// ...
cgl_rs::logger::shutdown();