Fixed the macros for the log level. No semi-colon at the end.
Got rid of the set_max_level member function as it led to a race condition with the if statement in the log() member fuction.
Reversed the logic of the if check of the log level.