Function cgl_rs::logger::set_auto_flush_on_log
source · pub fn set_auto_flush_on_log(auto_flush_on_log: bool)
Expand description
Sets whether the logger should automatically flush all log messages to their respective log files after each log message.
Arguments
auto_flush_on_log
- A boolean value indicating whether the logger should automatically flush all log messages to their respective log files after each log message.
Example
cgl_rs::logger::init(true);
cgl_rs::logger::set_auto_flush_on_log(true);
// ...
cgl_rs::logger::shutdown();