skip to Main Content

Azure – Stop logging from TableClient

I have a function app that uses a table client. svc.AddAzureClients(bldr => { var serviceUrl = tableStorageSection["ServiceUrl"] ?? throw new ArgumentNullException("Missing value for Values:TableStorage:ServiceUrl"); bldr.UseCredential(new DefaultAzureCredential()) .AddTableServiceClient(new Uri(serviceUrl)); }); When I run the function locally, this client spits out a…

VIEW QUESTION

How to configure ILoggerFactory in .NET 6 – Asp.net

In .NET 5 Startup.cs class there is Configure method which it's inside ILoggerFactory interface is injected. See below: public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory) { if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); } loggerFactory.AddFile("Logs/mylog-{Date}.txt"); app.UseRouting(); app.UseAuthentication(); app.UseAuthorization(); .......... } In .NET…

VIEW QUESTION
Back To Top
Search