Added basic logging to a log file.