pub trait Log { fn debug(val: &str); fn error(); fn info(val: &str); fn trace(); } use crate::serial_print; use lliw::{Fg, Reset}; pub struct ANSISerialLogger; impl Log for ANSISerialLogger { fn debug(val: &str) { serial_print!("[{}Debug{}] {}\n", Fg::Blue, Reset, val); } fn error() { todo!(); } fn info(val: &str) { serial_print!("[{}Info{}] {}\n", Fg::Blue, Reset, val); } fn trace() { todo!(); } }