Recording a log

A command line option has been added for recording a log.

"-r [filename.log]" or "--logrec [filename.log]" to start recording a log immediately. If no filename is provided, the log will be named <hostname>_<date>_<time>.log .