25 references to LoggerMessage
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (1)
11
private static readonly Action<ILogger, string, Exception> _exceptionCaughtByErrorBoundary =
LoggerMessage
.Define<string>(
Microsoft.Extensions.Http (11)
DefaultHttpClientFactory.cs (4)
326
private static readonly Action<ILogger, int, Exception?> _cleanupCycleStart =
LoggerMessage
.Define<int>(
331
private static readonly Action<ILogger, double, int, int, Exception?> _cleanupCycleEnd =
LoggerMessage
.Define<double, int, int>(
336
private static readonly Action<ILogger, string, Exception> _cleanupItemFailed =
LoggerMessage
.Define<string>(
341
private static readonly Action<ILogger, double, string, Exception?> _handlerExpired =
LoggerMessage
.Define<double, string>(
Logging\LogHelper.cs (7)
41
private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestStart =
LoggerMessage
.Define<HttpMethod, string?>(
47
private static readonly Action<ILogger, double, int, Exception?> _requestEnd =
LoggerMessage
.Define<double, int>(
52
private static readonly Action<ILogger, double, Exception?> _requestFailed =
LoggerMessage
.Define<double>(
57
private static readonly Func<ILogger, HttpMethod, string?, IDisposable?> _beginRequestPipelineScope =
LoggerMessage
.DefineScope<HttpMethod, string?>("HTTP {HttpMethod} {Uri}");
59
private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestPipelineStart =
LoggerMessage
.Define<HttpMethod, string?>(
64
private static readonly Action<ILogger, double, int, Exception?> _requestPipelineEnd =
LoggerMessage
.Define<double, int>(
69
private static readonly Action<ILogger, double, Exception?> _requestPipelineFailed =
LoggerMessage
.Define<double>(
Microsoft.Extensions.Logging.Abstractions (1)
LogDefineOptions.cs (1)
9
/// Options for <see cref="
LoggerMessage
.Define(LogLevel, EventId, string)"/> and its overloads.
Microsoft.Extensions.ML (8)
ModelLoaders\FileModelLoader.cs (4)
159
private static readonly Action<ILogger, string, Exception> _fileLoadBegin =
LoggerMessage
.Define<string>(
164
private static readonly Action<ILogger, string, double, Exception> _fileLoadEnd =
LoggerMessage
.Define<string, double>(
169
private static readonly Action<ILogger, string, double, Exception> _fileReloadError =
LoggerMessage
.Define<string, double>(
174
private static readonly Action<ILogger, string, double, Exception> _fileReLoad =
LoggerMessage
.Define<string, double>(
ModelLoaders\UriModelLoader.cs (4)
193
private static readonly Action<ILogger, Uri, Exception> _uriReloadBegin =
LoggerMessage
.Define<Uri>(
198
private static readonly Action<ILogger, Uri, double, Exception> _uriReloadEnd =
LoggerMessage
.Define<Uri, double>(
203
private static readonly Action<ILogger, Uri, double, Exception> _uriReloadError =
LoggerMessage
.Define<Uri, double>(
208
private static readonly Action<ILogger, Uri, Exception> _uriLoadError =
LoggerMessage
.Define<Uri>(
Microsoft.Extensions.Telemetry.PerformanceTests (4)
ClassicCodeGen.cs (2)
19
global::Microsoft.Extensions.Logging.
LoggerMessage
.Define<global::System.String, global::System.String, global::System.String, global::System.String, global::System.String, global::System.String>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(2037881459, nameof(RefTypes)), "Connection id '{connectionId}' received {type} frame for stream ID {streamId} with length {length} and flags {flags} and {other}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
30
global::Microsoft.Extensions.Logging.
LoggerMessage
.Define<global::System.Int64, global::System.Int64, global::System.Int32, global::System.Guid>(global::Microsoft.Extensions.Logging.LogLevel.Error, new global::Microsoft.Extensions.Logging.EventId(558429541, nameof(ValueTypes)), "Range [{start}..{end}], options {options}, guid {guid}", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true });
ExtendedLoggerBench.cs (2)
28
private static readonly Action<ILogger, string, string, string, string, string, string, Exception?> _loggerMessage_refTypes =
LoggerMessage
.Define<string, string, string, string, string, string>(
33
private static readonly Action<ILogger, long, long, int, Guid, Exception?> _loggerMessage_valueTypes =
LoggerMessage
.Define<long, long, int, Guid>(