Merge pull request #10182 from Pokechu22/log-enum-class Convert LOG_TYPE and LOG_LEVELS to enum class