This was tricky. I had to remember to put the "LogLevels" into the string. Otherwise IsLoggingEnabled was trying to call my newly define logging functions, which have the same name as the enums, but unscoped.