55 implementations of Log
aspire (2)
Diagnostics\FileLoggerProvider.cs (1)
236public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Interaction\SpectreConsoleLoggerProvider.cs (1)
40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.Cli.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (1)
25public void Log<TState>(
tests\Shared\Logging\XunitLoggerProvider.cs (1)
59public void Log<TState>(
Aspire.Dashboard (1)
Telemetry\TelemetryLoggerProvider.cs (1)
44public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.Dashboard.Components.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (1)
25public void Log<TState>(
tests\Shared\Logging\XunitLoggerProvider.cs (1)
59public void Log<TState>(
Aspire.Dashboard.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (1)
25public void Log<TState>(
tests\Shared\Logging\XunitLoggerProvider.cs (1)
59public void Log<TState>(
Aspire.Hosting (4)
ApplicationModel\ResourceLoggerService.cs (2)
119public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 592public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Backchannel\BackchannelLoggerProvider.cs (1)
91public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Pipelines\PipelineLoggerProvider.cs (1)
79public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.Hosting.Testing.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (1)
25public void Log<TState>(
tests\Shared\Logging\XunitLoggerProvider.cs (1)
59public void Log<TState>(
Aspire.Hosting.Tests (4)
Dashboard\DashboardResourceTests.cs (1)
770public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (1)
25public void Log<TState>(
tests\Shared\Logging\XunitLoggerProvider.cs (1)
59public void Log<TState>(
Aspire.Playground.Tests (3)
tests\Shared\Logging\TestLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
tests\Shared\Logging\TestLoggerT.cs (1)
25public void Log<TState>(
tests\Shared\Logging\XunitLoggerProvider.cs (1)
59public void Log<TState>(
Aspire.RabbitMQ.Client.Tests (1)
AspireRabbitMQLoggingTests.cs (1)
250public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Aspire.RabbitMQ.Client.v6.Tests (1)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (1)
250public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
dotnet-format (1)
Logging\SimpleConsoleLogger.cs (1)
37public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Infrastructure\KestrelTrace.cs (1)
25public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\DiagnosticReporterLoggerProvider.cs (1)
40public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.DotNet.HotReload.Watch (2)
src\sdk\src\Dotnet.Watch\AspireService\Helpers\LoggerProvider.cs (1)
20public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
UI\IReporter.cs (1)
97public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Caching.Hybrid.Tests (1)
LogCollector.cs (1)
116void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogger.cs (1)
74public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
DropMessageLogger.cs (1)
23public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging (1)
Logger.cs (1)
27public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.Abstractions (3)
LoggerT.cs (1)
45void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
NullLogger.cs (1)
38public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
NullLoggerT.cs (1)
29public void Log<TState>(
Microsoft.Extensions.Logging.Console (1)
ConsoleLogger.cs (1)
46public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.Debug (1)
DebugLogger.cs (1)
39public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.EventLog (1)
EventLogLogger.cs (1)
70public void Log<TState>(
Microsoft.Extensions.Logging.EventSource (1)
EventSourceLogger.cs (1)
63public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.MSBuild (1)
MSBuildLogger.cs (1)
61public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Logging.TraceSource (1)
TraceSourceLogger.cs (1)
27public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
XunitLoggerFactoryExtensions.cs (1)
77public void Log<TState>(
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLogger.cs (1)
52public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
BenchLogger.cs (1)
35public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Extensions.Telemetry.Tests (4)
Logging\ExtendedLoggerFactoryTests.cs (2)
569public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) 607public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Logging\ExtendedLoggerTests.cs (2)
1088public void Log<TState>( 1156public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter) => _provider.State = state?.ToString();
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
63public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
Microsoft.Maui (1)
Hosting\MauiAppBuilder.cs (1)
200 public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
66 references to Log
Aspire.Cli.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
32_logger.Log(logLevel, eventId, state, exception, formatter);
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
212logger.Log((LogLevel)logMessage.LevelAs(LogLevelType.MicrosoftExtensionsLogging), logMessage.Facility?.GetHashCode() ?? 0, logMessage.Message, null, static (value, ex) => value);
AspireKafkaProducerExtensions.cs (1)
212logger.Log((LogLevel)logMessage.LevelAs(LogLevelType.MicrosoftExtensionsLogging), logMessage.Facility?.GetHashCode() ?? 0, logMessage.Message, null, static (value, ex) => value);
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
32_logger.Log(logLevel, eventId, state, exception, formatter);
Aspire.Dashboard.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
32_logger.Log(logLevel, eventId, state, exception, formatter);
Aspire.Hosting (4)
ApplicationModel\ResourceLoggerService.cs (1)
123logger.Log(logLevel, eventId, state, exception, formatter);
Dashboard\DashboardEventHandlers.cs (2)
855defaultDashboardLogger.Log(level, 0, logLine.Content, null, (s, _) => s); 899logger.Log(
Dcp\DcpHost.cs (1)
394logger.Log(logLevel, 0, message, null, static (value, ex) => value);
Aspire.Hosting.Testing.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
32_logger.Log(logLevel, eventId, state, exception, formatter);
Aspire.Hosting.Tests (2)
Dashboard\DashboardResourceTests.cs (1)
620logger.Log(logLevel, 0, JsonSerializer.Serialize(dashboardLogMessage), null, (s, _) => s);
tests\Shared\Logging\TestLoggerT.cs (1)
32_logger.Log(logLevel, eventId, state, exception, formatter);
Aspire.Playground.Tests (1)
tests\Shared\Logging\TestLoggerT.cs (1)
32_logger.Log(logLevel, eventId, state, exception, formatter);
Aspire.RabbitMQ.Client (1)
src\Components\Aspire.RabbitMQ.Client\RabbitMQEventSourceLogForwarder.cs (1)
44_logger.Log(level, eventId, new ErrorEventSourceEvent(eventData), null, s_formatErrorEvent);
EventHubsConsumer (1)
Consumer.cs (1)
24void LogString(string message) => logger.Log(LogLevel.Information, 0, message, null, (s, _) => s);
Microsoft.AspNetCore.Components (1)
_generated\0\LoggerMessage.g.cs (1)
241logger.Log(
Microsoft.AspNetCore.Components.Endpoints (3)
_generated\0\LoggerMessage.g.cs (3)
331logger.Log( 414logger.Log( 481logger.Log(
Microsoft.AspNetCore.Components.Server (1)
_generated\0\LoggerMessage.g.cs (1)
1205logger.Log(
Microsoft.AspNetCore.Hosting (3)
Internal\HostingApplicationDiagnostics.cs (3)
275_logger.Log( 293_logger.Log( 305_logger.Log(
Microsoft.AspNetCore.Http.Extensions (3)
_generated\0\LoggerMessage.g.cs (3)
258logger.Log( 341logger.Log( 408logger.Log(
Microsoft.AspNetCore.HttpLogging (3)
HttpLoggingExtensions.cs (3)
10public static void RequestLog(this ILogger logger, HttpLog requestLog) => logger.Log( 16public static void ResponseLog(this ILogger logger, HttpLog responseLog) => logger.Log( 41public static void RequestResponseLog(this ILogger logger, HttpLog log) => logger.Log(
Microsoft.AspNetCore.Mvc.Core (5)
_generated\0\LoggerMessage.g.cs (5)
630logger.Log( 1532logger.Log( 1592logger.Log( 1654logger.Log( 1808logger.Log(
Microsoft.AspNetCore.Server.Kestrel.Core (3)
_generated\0\LoggerMessage.g.cs (2)
291logger.Log( 1118logger.Log(
Internal\Infrastructure\KestrelTrace.cs (1)
26=> _generalLogger.Log(logLevel, eventId, state, exception, formatter);
Microsoft.AspNetCore.SignalR.Core (1)
_generated\0\LoggerMessage.g.cs (1)
165logger.Log(
Microsoft.DotNet.HotReload.Watch (1)
UI\IReporter.cs (1)
63logger.Log(
Microsoft.Extensions.Diagnostics.HealthChecks (1)
DefaultHealthCheckService.cs (1)
257logger.Log(
Microsoft.Extensions.Diagnostics.Testing (1)
Logging\FakeLogRecord.cs (1)
59/// When logging using the code generator logging model, the arguments you supply to the logging method are packaged into a single state object which is delivered to the <see cref="ILogger.Log"/>
Microsoft.Extensions.Http (4)
Logging\LogHelper.cs (4)
78logger.Log( 93logger.Log( 117logger.Log( 132logger.Log(
Microsoft.Extensions.Http.Diagnostics (1)
Logging\Internal\Log.cs (1)
149logger.Log(
Microsoft.Extensions.Logging (1)
Logger.cs (1)
56logger.Log(logLevel, eventId, state, exception, formatter);
Microsoft.Extensions.Logging.Abstractions (9)
LoggerExtensions.cs (1)
486logger.Log(logLevel, eventId, new FormattedLogValues(message, args), exception, _messageFormatter);
LoggerMessage.cs (7)
147logger.Log(logLevel, eventId, new LogValues(formatter), exception, LogValues.Callback); 190logger.Log(logLevel, eventId, new LogValues<T1>(formatter, arg1), exception, LogValues<T1>.Callback); 235logger.Log(logLevel, eventId, new LogValues<T1, T2>(formatter, arg1, arg2), exception, LogValues<T1, T2>.Callback); 282logger.Log(logLevel, eventId, new LogValues<T1, T2, T3>(formatter, arg1, arg2, arg3), exception, LogValues<T1, T2, T3>.Callback); 331logger.Log(logLevel, eventId, new LogValues<T1, T2, T3, T4>(formatter, arg1, arg2, arg3, arg4), exception, LogValues<T1, T2, T3, T4>.Callback); 382logger.Log(logLevel, eventId, new LogValues<T1, T2, T3, T4, T5>(formatter, arg1, arg2, arg3, arg4, arg5), exception, LogValues<T1, T2, T3, T4, T5>.Callback); 435logger.Log(logLevel, eventId, new LogValues<T1, T2, T3, T4, T5, T6>(formatter, arg1, arg2, arg3, arg4, arg5, arg6), exception, LogValues<T1, T2, T3, T4, T5, T6>.Callback);
LoggerT.cs (1)
47_logger.Log(logLevel, eventId, state, exception, formatter);
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLogger.cs (1)
475loggerInfo.Logger.Log(logLevel, eventId, joiner, exception, static (s, e) =>
Logging\Import\LoggerInformation.cs (1)
27LoggerLog = logger.Log<ExtendedLogger.ModernTagJoiner>;
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.cs (1)
13/// Additional state to use with <see cref="ILogger.Log"/>.
Microsoft.Extensions.Telemetry.PerformanceTests (2)
ModernCodeGen.cs (2)
27logger.Log( 60logger.Log(
Microsoft.Extensions.Telemetry.Tests (3)
Logging\ExtendedLoggerTests.cs (3)
154logger.Log(LogLevel.Warning, new EventId(2, "ID2"), lms, null, (_, _) => "MSG2"); 936logger.Log(LogLevel.Warning, new EventId(2, "ID2"), "some state", null, (_, _) => "MSG2"); 968logger.Log(LogLevel.Warning, new EventId(2, "ID2"), "some state", null, (_, _) => "MSG2");
Microsoft.Gen.Logging.Generated.Tests (1)
Utils.cs (1)
64=> _logger.Log(logLevel, eventId, state, exception, formatter);
Stress.ApiService (1)
Program.cs (1)
231logger.Log(LogLevel.Information, 0, eventData, null, formatter: (_, _) => null!);