add out_formater to format output file.

Signed-off-by: Samuel Deng <mr.dengshuoling@gmail.com>