Trait slog_glog_fmt::kv_categorizer::KVCategorizer
source · pub trait KVCategorizer {
// Required methods
fn categorize(&self, key: Key) -> KVCategory;
fn name(&self, key: Key) -> &'static str;
// Provided method
fn ignore(&self, key: Key) -> bool { ... }
}
Expand description
Structures implementing this trait are being used to categorize the KV values into one of the
KVCategory
.
Required Methods§
sourcefn categorize(&self, key: Key) -> KVCategory
fn categorize(&self, key: Key) -> KVCategory
For a given key from KV decide which category it belongs to