To get started, let us create a C# Console Application and add the NuGet Package for log4net.
Update the App.Config with log4net configuration.
The most important part here is value of file.
The D:\Home\LogFiles is the path where our WebJob can write to.
https://docs.microsoft.com/en-us/azure/app-service/web-sites-enable-diagnostic-log#download
Inside our program.cs initialize the log4net.
Publish the WebJob to Azure.
Open the Kudo, we can see the Folder created
And our log file
Get all the details here
Hope it helps..