services.AddSingleton<ITelemetryModule, FileDiagnosticsTelemetryModule>(); services.ConfigureTelemetryModule<FileDiagnosticsTelemetryModule>( (module, options) => { module.LogFilePath ="C:\\SDKLOGS"; module.LogFileName ="mylog.txt"; module.Severity ="Verbose"; } ); ...