Created a class for logging.