Avoid regressions to raw log mask calculations
It's easy to accidentally calculate log masks yourself, rather than using the standard macro.
Can we replace masks[LOG_-LOG_ERR] with masks[SEVERITY_MASK_IDX(LOG_)] automatically? Or should we ban -LOG_ERR