Implemented creation of the log file and adding messages in the same