Generalize NBULog macros