Skip to content

Commit

Permalink
Clarify config levels documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Mar 27, 2021
1 parent a6216ae commit d1e80a2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,31 +90,31 @@ impl ConfigBuilder {
ConfigBuilder(Config::default())
}

/// Set at which level and below the level itself shall be logged (default is Error)
/// Set at which level and above (more verbose) the level itself shall be logged (default is Error)
pub fn set_max_level<'a>(&'a mut self, level: LevelFilter) -> &'a mut ConfigBuilder {
self.0.level = level;
self
}

/// Set at which level and below the current time shall be logged (default is Error)
/// Set at which level and above (more verbose) the current time shall be logged (default is Error)
pub fn set_time_level<'a>(&'a mut self, time: LevelFilter) -> &'a mut ConfigBuilder {
self.0.time = time;
self
}

/// Set at which level and below the thread id shall be logged. (default is Debug)
/// Set at which level and above (more verbose) the thread id shall be logged. (default is Debug)
pub fn set_thread_level<'a>(&'a mut self, thread: LevelFilter) -> &'a mut ConfigBuilder {
self.0.thread = thread;
self
}

/// Set at which level and below the target shall be logged. (default is Debug)
/// Set at which level and above (more verbose) the target shall be logged. (default is Debug)
pub fn set_target_level<'a>(&'a mut self, target: LevelFilter) -> &'a mut ConfigBuilder {
self.0.target = target;
self
}

/// Set at which level and below a source code reference shall be logged (default is Trace)
/// Set at which level and above (more verbose) a source code reference shall be logged (default is Trace)
pub fn set_location_level<'a>(&'a mut self, location: LevelFilter) -> &'a mut ConfigBuilder {
self.0.location = location;
self
Expand Down

0 comments on commit d1e80a2

Please sign in to comment.