Added logging to file.
Logging to file.