microsoft / CloudAdoptionFramework

Code samples and extended documentation to support the guidance provided in the Microsoft Cloud Adoption Framework
https://aka.ms/CAF
Creative Commons Attribution 4.0 International
864 stars 621 forks source link

AzNamingTool - Unable to turn off Info Log. Generating too many logs on console continuously #140

Closed tarunchy closed 1 year ago

tarunchy commented 1 year ago

Hello,

I am experimenting with AzNamingTool and deployed the same in my own Lab environment - http://aznaming.multicloudcoe.com/. I am noticing that it continuously generating too many logs. I deployed this tool as docker container.

Following are steps I performed:

  1. Changed file appsettings.json https://github.com/microsoft/CloudAdoptionFramework/blob/master/ready/AzNamingTool/appsettings.json https://github.com/microsoft/CloudAdoptionFramework/blob/master/ready/AzNamingTool/appsettings.Development.json https://github.com/microsoft/CloudAdoptionFramework/blob/master/ready/AzNamingTool/repository/appsettings.json In All three files I changed log level to Warning.
  2. Then rebuild the image and started new container.

However I still notice a lot Info logs are generating:

still seeing logs 30206 text/plain;charset=UTF-8 - info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint '/_blazor' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint '/_blazor' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://aznaming.multicloudcoe.com/_blazor?id=DqM9S2bD02THNGGBmzCPGQ&_=1675404030206 text/plain;charset=UTF-8 - - 200 148 application/octet-stream 0.2169ms info: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 POST http://aznaming.multicloudcoe.com/_blazor?id=DqM9S2bD02THNGGBmzCPGQ text/plain;charset=UTF-8 469 info: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint '/_blazor' info: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint '/_blazor' info: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 POST http://aznaming.multicloudcoe.com/_blazor?id=DqM9S2bD02THNGGBmzCPGQ text/plain;charset=UTF-8 469 - 200 0 text/plain 0.1233ms

Could you please suggest how to turn off these logs?

BryanSoltis commented 1 year ago

Hello Tarun, We are investigating this and will respond when we have more details. Thank you. -Bryan