Logger now checks if there is already a log file under a name, and if there is, moves on to the next. Also, logger now creates the file directory for the logs.