2021-11-27 09:19:08 -06:00
|
|
|
pub trait Log {
|
|
|
|
fn debug();
|
|
|
|
fn error();
|
|
|
|
fn log();
|
|
|
|
fn trace();
|
|
|
|
}
|
|
|
|
|
|
|
|
use crate::serial_print;
|
2021-11-27 14:59:29 -06:00
|
|
|
use lliw::{Fg, Reset};
|
2021-11-27 09:19:08 -06:00
|
|
|
pub struct ANSISerialLogger;
|
|
|
|
impl Log for ANSISerialLogger {
|
|
|
|
fn debug() {
|
2021-11-27 14:59:29 -06:00
|
|
|
serial_print!("[{}Debug{}]", Fg::Blue, Reset);
|
2021-11-27 09:19:08 -06:00
|
|
|
|
|
|
|
todo!();
|
|
|
|
}
|
|
|
|
fn error() {
|
|
|
|
todo!();
|
|
|
|
}
|
|
|
|
fn log() {
|
|
|
|
todo!();
|
|
|
|
}
|
|
|
|
fn trace() {
|
|
|
|
todo!();
|
|
|
|
}
|
|
|
|
}
|