Add option to log to file.
Merge pull request #9 from orviz/add_log_to_file_capabilities

Add option to log to file.