Implemented a new class called FileLog to handle logging to files.