Use enum class for log level.