log: updated MAX_LOGLEVEL to use correct log level enum type