log tidying