Added new log function.
Added new log function.

1. Modifed _log_writer to allow formating
2. added save_log function which can save the log to a file
3. Modified all uses of the log function to consider the formating
option.

AKuederle/thorlabs_chopper_interface