log association refactor