Added macros for the log levels.
Added member function to the logger to set the max level.
Updated the main log function to not do the logging if the log level isn't high enough.