format output log