atac 0.12.0

Arguably a Terminal API Client. Feature-full, free, open-source, offline and account-less.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::io::Write;
use crate::app::app::App;

impl App<'_> {
    pub fn write_to_log_file(&mut self, modifier: String, key: String, app_state: String) {
        self.log_file
            .as_ref()
            .unwrap()
            .write_fmt(format_args!(
                "{:25}{:25}{:40}\n",
                modifier,
                key,
                app_state,
            ))
            .expect("Could not write to log file");
    }
}