Added a RotatingFileHandler to log messages to a file.
It has been chosen to preserve space (at 1MB per file) and use the last ten log files as backups.
logging.Formatter allows us to custom-format our messages.
We lower the logging level both in the app logger and the file logger handler, so as to write useful messages to the log without calling them errors.