I have a .Net Core 2.0 Web service which is deployed on Microsoft Azure. In my application I am using Azure Web App Diagnostics to store logs in the Blob storage.
The logs files are split according to hours. Currently the blob file path would be something like {year}/{month}/{date}/{hour}/{filename}. Having a new folder for every hour.
I want to change this storage path and store daily logs in one file. I am using LoggerFactory for logging. I have added the AzureWebAppDiagnostics in the Configure method in Startup.cs
loggerFactory.AddAzureWebAppDiagnostics(
new AzureAppServicesDiagnosticsSettings
{
OutputTemplate = "{Timestamp:yyyy-MM-dd HH:mm:ss zzz} [{Level}] {RequestId}-{SourceContext}: {Message}{NewLine}{Exception}"
}
);
I understand that there are other ways of logging such as using NLog or SeriLog but is there any out of the box way of doing what I mentioned above?