Added the start of the code to log portals in the portal.yml