refactor logformat