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

39 lines
705 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::{Bg, Fg, Reset, Style};
pub struct ANSISerialLogger;
impl Log for ANSISerialLogger {
fn debug() {
// serial_print!("[{}Debug{}]",);
serial_print!(
"{}{}Attention!{}{} You have {}{}1{}{} new message",
Style::Underline,
Fg::Yellow,
Style::NoUnderline,
Fg::Reset,
Bg::White,
Fg::Black,
Bg::Reset,
Fg::Reset,
);
todo!();
}
fn error() {
todo!();
}
fn log() {
todo!();
}
fn trace() {
todo!();
}
}