<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.FileHelper

static class FileHelper
This class contains helper methods that can be shared across file loggers.
public static string IdentityName { get; }

public static string GenerateFileName()

Generate a file name in the format "ApplicationInsightsLog_20200101_120000_w3wp_12345.txt.

public static void TestDirectoryPermissions(DirectoryInfo directory)

Test that this process can read and write to a given directory.