2019-02-05 07:10:55 +00:00
|
|
|
#[derive(Debug, Clone)]
|
|
|
|
pub enum Level {
|
2019-02-06 16:42:32 +00:00
|
|
|
Debug = 0,
|
|
|
|
Info = 10,
|
|
|
|
Warning = 20,
|
|
|
|
Error = 30,
|
|
|
|
Critical = 40,
|
2019-02-05 07:10:55 +00:00
|
|
|
}
|
|
|
|
|
2019-01-31 10:01:47 +00:00
|
|
|
#[derive(Debug, Clone)]
|
2019-01-30 15:26:05 +00:00
|
|
|
pub struct Message {
|
2019-01-31 10:01:47 +00:00
|
|
|
pub emitter: String,
|
2019-02-05 07:10:55 +00:00
|
|
|
pub level: Level,
|
2019-01-31 10:01:47 +00:00
|
|
|
pub msg_type: String,
|
|
|
|
pub text: String,
|
2019-01-30 22:11:51 +00:00
|
|
|
}
|