refactor and modify basic log value type.