1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::default::Default;

/// Logging levers, by default all tasks log as L1, but can be changed to
/// l0, l2, l3 by using #l0 #l2 #l3 tags in the task name.
/// Reporters can be set to ignore anything up from a certain level.
#[derive(Clone, Copy, PartialEq, PartialOrd, Eq, Ord)]
pub enum Level {
    L0,
    L1,
    L2,
    L3,
}

impl Default for Level {
    fn default() -> Self {
        Self::L1
    }
}