pub fn log(message: String, destination: u8) {
    if !LOG_SILENT.load(Ordering::Relaxed) {
        if destination == LOG_STDOUT {
            println!("{}", message);
        } else if destination == LOG_STDERR {
            eprintln!("{}", message);
        } else {
            println!("Unknown log destination.");
        }
    }
}
/// Log a message to a defined destination
///
/// # Arguments
///
/// destination: LOG_STDOUT or LOG_STDERR
/// silent: if set no log message is created
Log a message to a defined destination
Log a message to a defined destination
pub fn log(message: String, destination: u8) {
    if !LOG_SILENT.load(Ordering::Relaxed) {
        if destination == LOG_STDOUT {
            println!("{}", message);
        } else if destination == LOG_STDERR {
            eprintln!("{}", message);
        } else {
            println!("Unknown log destination.");
        }
    }
}
pub fn log ( message : String , destination : u8 ) { if ! LOG_SILENT . load ( Ordering :: Relaxed ) { if destination == LOG_STDOUT { println ! ( " " message ) ; } else if destination == LOG_STDERR { eprintln ! ( " " message ) ; } else { println ! ( " " ) ; } } }
Log a message to a defined destination
Log a message to a defined destination
message
String
destination
u8
message
String
destination
u8