Fix for MAGN-111

Added log write for each command.
Added static methods for creating and closing the writer.
We now write log files to a folder in the executing assembly's directory
and we DO NOT overwrite them.