junobuild_satellite/logs/
types.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
pub mod logs {
    use crate::Blob;
    use candid::{CandidType, Deserialize};
    use serde::Serialize;

    #[derive(CandidType, Serialize, Deserialize, Clone, Debug)]
    pub enum LogLevel {
        Debug,
        Info,
        Warning,
        Error,
    }

    #[derive(CandidType, Serialize, Deserialize, Clone, Debug)]
    pub struct Log {
        pub level: LogLevel,
        pub message: String,
        pub data: Option<Blob>,
    }
}