refine the log output