ableos/sysdata/idl/log/src/protocol.aidl

24 lines
285 B
Plaintext
Raw Normal View History

2024-09-02 21:50:43 -05:00
@auto_increment
enum LogLevel {
Error = 0,
Warn,
Info,
Debug,
Trace,
}
@auto_increment
enum LogResult {
Err = 0,
Ok,
}
struct Log {
log_level: LogLevel,
}
@visibility(public)
protocol Log {
fn log(Log) -> LogResult;
fn flush() -> LogResult;
}