It logs the necessary data through the LogEntry class.