parse log file and config file from the command line