refine logger