/// PARAMS: info = a string of the message you would
/// liked logged. writes the output to the file
/// at the path .gee/logs.txt.
info = a string of the message you would
liked logged. writes the output to the file
at the path .gee/logs.txt.
info = a string of the message you would liked logged . writes the output to the file at the path . gee / logs . txt .
pub fn log_info(info: &str) -> Result<()> {
    match OpenOptions::new()
        .create(true)
        .append(true)
        .open(prefix_home(".gee/logs.txt"))
    {
        Ok(ref mut file) => {
            writeln!(file, "{}", info).unwrap();
        }
        Err(err) => {
            panic!("failed to open log file: {}", err);
        }
    }
    Ok(())
}
pub fn log_info ( info : & str ) -> Result < ( ) > { match OpenOptions :: new ( ) . create ( true ) . append ( true ) . open ( prefix_home ( " " ) ) { Ok ( ref mut file ) => { writeln ! ( file " " info ) . unwrap ( ) ; } Err ( err ) => { panic ! ( " " err ) ; } } Ok ( ( ) ) }
PARAMS: info = a string of the message you would
liked logged.
PARAMS : info = a string of the message you would liked logged .
info
&str