format output/log