Updated Logger for file output