feat(log): apperently, it wasn't possible to set a min log level?
cargo devel CI / cargo CI (push) Failing after 1m44s Details

This commit is contained in:
Christoph J. Scherr 2024-07-09 19:39:33 +02:00
parent 729c4e3a4e
commit 8226d74fb9
1 changed files with 9 additions and 0 deletions

View File

@ -329,6 +329,15 @@ impl LoggerBuilder {
self.uptime = uptime;
self
}
/// set the lowest loglevel to be displayed
///
/// Default: [`Level::INFO`]
#[must_use]
pub const fn set_level(mut self, max_level: Level) -> Self {
self.max_level = max_level;
self
}
}
impl Default for LoggerBuilder {