forked from AbleOS/ableos
39 lines
705 B
Rust
39 lines
705 B
Rust
|
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!();
|
||
|
}
|
||
|
}
|