21 implementations of ILoggerFactory
Aspire.Components.Common.Tests (1)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (1)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (1)
Aspire.Playground.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.Extensions.Logging (2)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Telemetry (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Maui (1)
1321 references to ILoggerFactory
Aspire.Components.Common.Tests (3)
Aspire.Confluent.Kafka (2)
Aspire.Dashboard (11)
Aspire.Dashboard.Components.Tests (12)
Aspire.Dashboard.Tests (24)
Aspire.Hosting (9)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.Nats (1)
Aspire.Hosting.Testing (1)
Aspire.Hosting.Testing.Tests (7)
Aspire.Hosting.Tests (11)
Aspire.Milvus.Client (1)
Aspire.MongoDB.Driver (1)
Aspire.NATS.Net (1)
Aspire.Playground.Tests (8)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (1)
Aspire.Qdrant.Client (1)
Aspire.RabbitMQ.Client (2)
Aspire.StackExchange.Redis (1)
AutobahnTestApp (1)
AzureAppServicesHostingStartupSample (1)
AzureAppServicesSample (1)
BasicWebSite (1)
BuildValidator (3)
ClientSample (2)
ConcurrencyLimiterSample (1)
CustomAuthorizationFailureResponse (1)
CustomEncryptorSample (2)
Diagnostics.EFCore.FunctionalTests (3)
DynamicSchemes (1)
HtmlGenerationWebSite (1)
Http3SampleApp (2)
Identity.DefaultUI.WebSite (1)
IdentitySample.DefaultUI (1)
IdentitySample.Mvc (3)
IIS.FunctionalTests (3)
IIS.LongTests (3)
IIS.NewHandler.FunctionalTests (3)
IIS.NewShim.FunctionalTests (3)
IIS.ShadowCopy.Tests (3)
IIS.Tests (6)
IISExpress.FunctionalTests (3)
IISSample (1)
InMemory.FunctionalTests (8)
Interop.FunctionalTests (2)
InteropClient (3)
Kestrel.SampleApp (1)
LocalizationWebsite (5)
Microsoft.AspNetCore (4)
Microsoft.AspNetCore.Antiforgery (1)
Microsoft.AspNetCore.Antiforgery.Test (7)
Microsoft.AspNetCore.Authentication (20)
PolicySchemeHandler.cs (4)
20/// <param name="logger">The <see cref="ILoggerFactory"/>.</param>
24public PolicySchemeHandler(IOptionsMonitor<PolicySchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock)
31/// <param name="logger">The <see cref="ILoggerFactory"/>.</param>
33public PolicySchemeHandler(IOptionsMonitor<PolicySchemeOptions> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder)
SignInAuthenticationHandler.cs (4)
21/// <param name="logger">The <see cref="ILoggerFactory"/>.</param>
25public SignInAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock)
32/// <param name="logger">The <see cref="ILoggerFactory"/>.</param>
34public SignInAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder)
SignOutAuthenticationHandler.cs (4)
20/// <param name="logger">The <see cref="ILoggerFactory"/>.</param>
24public SignOutAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock)
31/// <param name="logger">The <see cref="ILoggerFactory"/>.</param>
33public SignOutAuthenticationHandler(IOptionsMonitor<TOptions> options, ILoggerFactory logger, UrlEncoder encoder) : base(options, logger, encoder)
Microsoft.AspNetCore.Authentication.BearerToken (1)
Microsoft.AspNetCore.Authentication.Certificate (1)
Microsoft.AspNetCore.Authentication.Cookies (4)
Microsoft.AspNetCore.Authentication.Facebook (2)
Microsoft.AspNetCore.Authentication.Google (2)
Microsoft.AspNetCore.Authentication.JwtBearer (2)
Microsoft.AspNetCore.Authentication.MicrosoftAccount (2)
Microsoft.AspNetCore.Authentication.Negotiate (2)
Microsoft.AspNetCore.Authentication.OAuth (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.Authentication.Twitter (2)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.BrowserTesting (5)
Microsoft.AspNetCore.Components (7)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Microsoft.AspNetCore.Components.Server (4)
Microsoft.AspNetCore.Components.Server.Tests (2)
Microsoft.AspNetCore.Components.Tests (1)
Microsoft.AspNetCore.Components.Web (5)
Microsoft.AspNetCore.Components.WebAssembly (4)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Microsoft.AspNetCore.Components.WebView (3)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.ConcurrencyLimiter (2)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (1)
Microsoft.AspNetCore.CookiePolicy (2)
Microsoft.AspNetCore.Cors (8)
Microsoft.AspNetCore.DataProtection (60)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (4)
Microsoft.AspNetCore.DataProtection.Tests (6)
Microsoft.AspNetCore.Diagnostics (8)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.FunctionalTests (12)
Microsoft.AspNetCore.Grpc.JsonTranscoding (7)
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Hosting.Abstractions (1)
Microsoft.AspNetCore.Hosting.FunctionalTests (3)
Microsoft.AspNetCore.Hosting.Tests (11)
Microsoft.AspNetCore.Hosting.TestSites (1)
Microsoft.AspNetCore.Http.Connections (9)
Microsoft.AspNetCore.Http.Connections.Client (12)
Microsoft.AspNetCore.Http.Connections.Tests (8)
Microsoft.AspNetCore.Http.Extensions (5)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Results (78)
Microsoft.AspNetCore.Http.Results.Tests (38)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.HttpLogging.Tests (1)
Microsoft.AspNetCore.HttpOverrides (3)
Microsoft.AspNetCore.HttpsPolicy (3)
Microsoft.AspNetCore.HttpsPolicy.Tests (12)
Microsoft.AspNetCore.Identity (5)
TwoFactorSecurityStampValidator.cs (2)
26public TwoFactorSecurityStampValidator(IOptions<SecurityStampValidatorOptions> options, SignInManager<TUser> signInManager, ISystemClock clock, ILoggerFactory logger) : base(options, signInManager, clock, logger)
35public TwoFactorSecurityStampValidator(IOptions<SecurityStampValidatorOptions> options, SignInManager<TUser> signInManager, ILoggerFactory logger) : base(options, signInManager, logger)
Microsoft.AspNetCore.InternalTesting (22)
AssemblyTestLog.cs (12)
32private readonly ILoggerFactory _globalLoggerFactory;
46private AssemblyTestLog(ILoggerFactory globalLoggerFactory, ILogger globalLogger, string baseDirectory, Assembly assembly, IServiceProvider serviceProvider)
59public IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, [CallerMemberName] string testName = null) =>
63public IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, LogLevel minLogLevel, [CallerMemberName] string testName = null) =>
66internal IDisposable StartTestLog(ITestOutputHelper output, string className, out ILoggerFactory loggerFactory, LogLevel minLogLevel, out string resolvedTestName, out string logOutputDirectory, [CallerMemberName] string testName = null)
70var factory = serviceProvider.GetRequiredService<ILoggerFactory>();
93public ILoggerFactory CreateLoggerFactory(ITestOutputHelper output, string className, [CallerMemberName] string testName = null, DateTimeOffset? logStart = null)
97public ILoggerFactory CreateLoggerFactory(ITestOutputHelper output, string className, LogLevel minLogLevel, [CallerMemberName] string testName = null, DateTimeOffset? logStart = null)
98=> CreateLoggerServices(output, className, minLogLevel, out var _, out var _, testName, logStart).GetRequiredService<ILoggerFactory>();
210var loggerFactory = serviceProvider.GetRequiredService<ILoggerFactory>();
Microsoft.AspNetCore.InternalTesting.Tests (15)
Microsoft.AspNetCore.Localization (2)
Microsoft.AspNetCore.Localization.Tests (2)
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
Microsoft.AspNetCore.Mvc.Core (140)
Microsoft.AspNetCore.Mvc.Core.Test (54)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors (2)
Microsoft.AspNetCore.Mvc.Cors.Test (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml (14)
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
Microsoft.AspNetCore.Mvc.IntegrationTests (4)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (3)
Microsoft.AspNetCore.Mvc.Razor (8)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (2)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (7)
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
Microsoft.AspNetCore.Mvc.TagHelpers (2)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (11)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.OutputCaching (3)
Microsoft.AspNetCore.RequestDecompression.Tests (6)
Microsoft.AspNetCore.ResponseCaching (3)
Microsoft.AspNetCore.ResponseCaching.Tests (1)
Microsoft.AspNetCore.ResponseCompression.Tests (4)
Microsoft.AspNetCore.Rewrite (3)
Microsoft.AspNetCore.Routing (10)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
Microsoft.AspNetCore.Routing.Tests (17)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (14)
Utilities.cs (14)
43internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app, ILoggerFactory loggerFactory)
49internal static IServer CreateHttpServer(out string baseAddress, RequestDelegate app, Action<HttpSysOptions> configureOptions, ILoggerFactory loggerFactory)
55internal static IServer CreateHttpServerReturnRoot(string path, out string root, RequestDelegate app, ILoggerFactory loggerFactory)
61internal static IServer CreateHttpAuthServer(AuthenticationSchemes authType, bool allowAnonymous, out string baseAddress, RequestDelegate app, ILoggerFactory loggerFactory)
71internal static IHost CreateDynamicHost(AuthenticationSchemes authType, bool allowAnonymous, out string root, RequestDelegate app, ILoggerFactory loggerFactory)
80internal static IHost CreateDynamicHost(out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
85internal static IHost CreateDynamicHost(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
114internal static MessagePump CreatePump(ILoggerFactory loggerFactory)
117internal static MessagePump CreatePump(Action<HttpSysOptions> configureOptions, ILoggerFactory loggerFactory)
124internal static IServer CreateDynamicHttpServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory)
139internal static IServer CreateDynamicHttpsServer(out string baseAddress, RequestDelegate app, ILoggerFactory loggerFactory)
144internal static IServer CreateDynamicHttpsServer(string basePath, out string root, out string baseAddress, Action<HttpSysOptions> configureOptions, RequestDelegate app, ILoggerFactory loggerFactory = null)
179private readonly ILoggerFactory _loggerFactory;
181public ForwardingLoggerProvider(ILoggerFactory loggerFactory)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (3)
Microsoft.AspNetCore.Server.IISIntegration (4)
Microsoft.AspNetCore.Server.IntegrationTesting (10)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (7)
Microsoft.AspNetCore.Server.Kestrel.Core (13)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (11)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (3)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (4)
Microsoft.AspNetCore.Session (7)
Microsoft.AspNetCore.Session.Tests (12)
SessionTests.cs (12)
351services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
409services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
478services.AddSingleton(typeof(ILoggerFactory), NullLoggerFactory.Instance);
663services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
712services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
761services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
809services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
861services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
924services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
990services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
1055services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
1107services.AddSingleton(typeof(ILoggerFactory), loggerFactory);
Microsoft.AspNetCore.SignalR.Client.Core (7)
Internal\InvocationRequest.cs (4)
48public static InvocationRequest Invoke(CancellationToken cancellationToken, Type resultType, string invocationId, ILoggerFactory loggerFactory, HubConnection hubConnection, Activity? activity, out Task<object?> result)
56ILoggerFactory loggerFactory, HubConnection hubConnection, Activity? activity, out ChannelReader<object?> result)
83public Streaming(CancellationToken cancellationToken, Type resultType, string invocationId, ILoggerFactory loggerFactory, HubConnection hubConnection, Activity? activity)
171public NonStreaming(CancellationToken cancellationToken, Type resultType, string invocationId, ILoggerFactory loggerFactory, HubConnection hubConnection, Activity? activity)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (9)
Microsoft.AspNetCore.SignalR.Core (3)
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (3)
Microsoft.AspNetCore.SignalR.Tests (2)
Microsoft.AspNetCore.SignalR.Tests.Utils (13)
Microsoft.AspNetCore.SpaServices.Extensions (2)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.Tests (2)
Microsoft.AspNetCore.WebSockets (2)
Microsoft.AspNetCore.WebSockets.ConformanceTests (3)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.CodeAnalysis.LanguageServer (35)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (2)
Microsoft.CodeAnalysis.Rebuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
Microsoft.Extensions.Caching.Hybrid (1)
Microsoft.Extensions.Caching.Hybrid.Tests (2)
Microsoft.Extensions.Caching.Memory (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (3)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Microsoft.Extensions.Hosting (9)
Microsoft.Extensions.Hosting.Systemd (2)
Microsoft.Extensions.Hosting.WindowsServices (4)
Microsoft.Extensions.Http (4)
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
Microsoft.Extensions.Localization (3)
Microsoft.Extensions.Localization.Tests (1)
Microsoft.Extensions.Logging (8)
Microsoft.Extensions.Logging.Abstractions (5)
Microsoft.Extensions.Logging.Console (16)
ConsoleLoggerExtensions.Obsolete.cs (16)
24public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, Extensions.Configuration.IConfiguration configuration)
38public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, Console.IConsoleLoggerSettings settings)
53public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, Logging.LogLevel minLevel, bool includeScopes)
67public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, Logging.LogLevel minLevel)
81public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, bool includeScopes)
96public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, System.Func<string, Logging.LogLevel, bool> filter, bool includeScopes)
110public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory, System.Func<string, Logging.LogLevel, bool> filter)
123public static Logging.ILoggerFactory AddConsole(this Logging.ILoggerFactory factory)
Microsoft.Extensions.Logging.Debug (7)
Microsoft.Extensions.Logging.EventLog (7)
Microsoft.Extensions.Logging.EventSource (4)
Microsoft.Extensions.Logging.TraceSource (16)
Microsoft.Extensions.Telemetry (4)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (27)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Maui (3)
Microsoft.Maui.Maps (1)
Microsoft.ML.GenAI.Samples (1)
Microsoft.VisualStudio.LanguageServices.DevKit (2)
MiddlewareAnalysisSample (1)
PathSchemeSelection (1)
Sandbox (1)
ServerComparison.FunctionalTests (5)
ServerComparison.TestSites (4)
Sockets.BindTests (4)
Sockets.FunctionalTests (4)
Stress.ApiService (2)
SystemdTestApp (1)
TestProject.AppHost (1)
Wasm.Performance.ConsoleHost (3)