For logs stored in the App Service file system of Windows apps, the easiest way is to download the ZIP file in the browser at:
https://<app-name>.scm.azurewebsites.net/logs
https://<app-name>.scm.azurewebsites.net/api/dump
https://<app-name>.scm.azurewebsites.net/api/logs
https://<app-name>.scm.azurewebsites.net/api/home/LogFiles
https://<app-name>.scm.azurewebsites.net/home/LogFiles
https://<app-name>.scm.azurewebsites.net/api/logs/docker/zip
For Windows is in /api/dump, for Linux is /api/logs/docker/zip
/api/dump
/api/logs/docker/zip