refine logging: better format