log file as command line parameter

close #151