https://cognitivehub.in/how-to-log-keras-loss-output-to-a-file/