This would better be handled with a `final switch` for these reasons:
 - I *think* that declaring an AA as an enum will dynamically recreate it on every use, making it `static immutable` should also fix that
 - The lower log levels are not handled here (`debugv` and `trace` - should probably also be mapped to `debug_` or just ignored), the final switch makes it impossible to leave values out
 - `switch` is probably slightly more efficient (apart from the memory allocations), but that hopefully shouldn't matter here