(new): add threshold-based log level filtering and docs
Golang lint / lint (push) Successful in 1m36s
Golang lint / lint (push) Successful in 1m36s
- add threshold-aware LogLevel constructors - add Logger.SetThresholdMode and SameThreshold - preserve legacy SameLevel behavior for compatibility - extend tests for threshold mode and compatibility - update README and release notes for v2.2.0
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
// io.Writer values through CreateTextWriter or CreateJsonWriter remain owned by
|
||||
// the caller and are not closed by the logger.
|
||||
//
|
||||
// LogLevel values can be compared with SameLevel when only severity matters or
|
||||
// LogLevel values can be compared with SameLevel when only the legacy severity
|
||||
// index matters, with SameThreshold when only threshold filtering matters, or
|
||||
// with Equal when the full level configuration must match.
|
||||
package sneklog
|
||||
|
||||
Reference in New Issue
Block a user