Refactor the FileLogger, make it more useful