Function cgl_rs::logger::detach_log_file
source · pub fn detach_log_file(log_file_path: &str) -> bool
Expand description
Detaches a log file from the logger.
Arguments
log_file_path
- A string slice containing the path to the log file.
Returns
A boolean value indicating whether the log file was successfully detached or not.
Example
cgl_rs::logger::init(true);
let log_file_path = "log.txt";
cgl_rs::logger::attach_log_file(log_file_path);
let detached = cgl_rs::logger::detach_log_file(log_file_path);
// ...
cgl_rs::logger::shutdown();