pub fn check_mask(mask: DebugMask, log_level: usize) -> bool
Utility function to provide typed checking of the mask’s field state.