support logger and change output time format

support logger
change output time format .03f
@byplayer Do you need these empty lines?