add macro for checking whether a given log component is active at a given level