Skip to main content

log_level_matches

Function log_level_matches 

Source
pub fn log_level_matches(level: &str, target: &str) -> bool
Expand description

Compares two configured log levels without accepting empty values.

§Parameters

§Returns

Returns true when the condition checked by crate::http::log_level_matches holds and false otherwise.

§Examples

ⓘ
let _result = pharos_runtime_core::http::log_level_matches("info", "/");
  • crate::http for adjacent helpers that share the same runtime surface.