27 references to AddFilter
Aspire.Dashboard (9)
DashboardWebApplication.cs (9)
132builder.Logging.AddFilter("Aspire.Dashboard", LogLevel.Debug); 136builder.Logging.AddFilter("Grpc", LogLevel.Information); 137builder.Logging.AddFilter("Aspire.Dashboard.Authentication", LogLevel.Information); 138builder.Logging.AddFilter("Aspire.Dashboard.Otlp", LogLevel.Information); 139builder.Logging.AddFilter("Microsoft", LogLevel.Information); 140builder.Logging.AddFilter("Microsoft.AspNetCore.Cors", LogLevel.Warning); 141builder.Logging.AddFilter("Microsoft.AspNetCore.Hosting.Diagnostics", LogLevel.Warning); 142builder.Logging.AddFilter("Microsoft.AspNetCore.Routing.EndpointMiddleware", LogLevel.Warning); 143builder.Logging.AddFilter("Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware", LogLevel.Warning);
Aspire.Hosting (8)
DistributedApplicationBuilder.cs (6)
137_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 138_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 139_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 140_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error); 144_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None); 148_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning);
ResourceBuilderExtensions.cs (2)
878configure.AddFilter($"System.Net.Http.HttpClient.{healthCheckKey}.LogicalHandler", LogLevel.None); 879configure.AddFilter($"System.Net.Http.HttpClient.{healthCheckKey}.ClientHandler", LogLevel.None);
Aspire.Hosting.Tests (2)
Dashboard\DashboardResourceTests.cs (1)
433b.AddFilter("Aspire.Hosting.Dashboard", logLevel);
Utils\TestDistributedApplicationBuilder.cs (1)
114builder.AddFilter("Aspire.Hosting", LogLevel.Trace);
Aspire.Playground.Tests (2)
Infrastructure\DistributedApplicationTestFactory.cs (2)
50logging.AddFilter("Aspire", LogLevel.Trace); 51logging.AddFilter(builder.Environment.ApplicationName, LogLevel.Trace);
CookiePolicySample (1)
Program.cs (1)
22factory.AddFilter("Microsoft", LogLevel.Trace);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Logging\AcceptanceTests.cs (4)
110.AddFilter("Microsoft.Hosting", LogLevel.Warning) 111.AddFilter("Microsoft.Extensions.Hosting", LogLevel.Warning) 112.AddFilter("Microsoft.AspNetCore", LogLevel.Warning) 113.AddFilter("Microsoft.AspNetCore.HttpLogging", level)
Microsoft.Extensions.Telemetry.Tests (1)
Logging\ExtendedLoggerTests.cs (1)
647builder.AddFilter(null, LogLevel.None);