This probably means rewriting the logging macros so that the level is checked before calling the actual logging function.