clean log code