[Public] Where are my log files located in Azure App Service?
If you're using IronPdf on Azure App Service for Linux, you can find log files using SSH or Kudu directly from the Azure Portal.
When running IronPdf on Azure App Service for Linux, the library writes its logs to the file system. These logs are not automatically available through Azure’s diagnostic logs, but you can access them manually using SSH or Kudu.
Default Log Locations
By default, IronPdf writes logs to:
/home/site/wwwroot
By this code:
IronPdf.Logging.Logger.LogFilePath = "Default.log";
How to Access IronPdf Logs
Option 1: SSH via Azure Portal
-
Go to your App Service in the Azure Portal
-
Under Development Tools, click SSH
- In the shell, run:
# Navigate to the web app's root folder
cd /home/site/wwwroot
# List all files and directories in the current folder
ls
# Display the full contents of the 'Default.log' file
cat Default.log
Option 2: Kudu (Advanced Tools)
-
Go to Azure Portal > Development Tools > Advanced Tool > Go > Site wwwroot > Default.log
-
You can view or download
.log
files there