Refine logs