Added logging to file and added *.log to .gitignore.