Skip to content

Commit d1e80a2

Browse files
committed
Clarify config levels documentation
1 parent a6216ae commit d1e80a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/config.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -90,31 +90,31 @@ impl ConfigBuilder {
9090
ConfigBuilder(Config::default())
9191
}
9292

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

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

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

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

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

0 commit comments

Comments
 (0)