map_target

Function map_target 

fn map_target(target: &[u8], level_hint: Level) -> Option<Cow<'static, str>>
Available on crate feature logging only.
Expand description

Maps a Quectel log target to a Rust log target.

target is expected to be an ASCII byte slice and level_hint is used to determine if dynamic log targets are enabled.

It first attempts to map the target to a static target using map_target_static. If no static mapping exists, it checks if dynamic log targets are enabled for the given level_hint. If they are enabled, it returns a dynamically constructed target string. Otherwise, it returns None.