refine log