1
0
Fork 0
forked from AbleOS/ableos
ableos_time/ableos/src/log.rs

27 lines
406 B
Rust
Raw Normal View History

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