25 references to LoggerMessage
Microsoft.AspNetCore.Components.Endpoints (1)
DependencyInjection\PrerenderingErrorBoundaryLogger.cs (1)
11private static readonly Action<ILogger, string, Exception> _exceptionCaughtByErrorBoundary = LoggerMessage.Define<string>(
Microsoft.Extensions.Http (11)
DefaultHttpClientFactory.cs (4)
326private static readonly Action<ILogger, int, Exception?> _cleanupCycleStart = LoggerMessage.Define<int>( 331private static readonly Action<ILogger, double, int, int, Exception?> _cleanupCycleEnd = LoggerMessage.Define<double, int, int>( 336private static readonly Action<ILogger, string, Exception> _cleanupItemFailed = LoggerMessage.Define<string>( 341private static readonly Action<ILogger, double, string, Exception?> _handlerExpired = LoggerMessage.Define<double, string>(
Logging\LogHelper.cs (7)
41private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestStart = LoggerMessage.Define<HttpMethod, string?>( 47private static readonly Action<ILogger, double, int, Exception?> _requestEnd = LoggerMessage.Define<double, int>( 52private static readonly Action<ILogger, double, Exception?> _requestFailed = LoggerMessage.Define<double>( 57private static readonly Func<ILogger, HttpMethod, string?, IDisposable?> _beginRequestPipelineScope = LoggerMessage.DefineScope<HttpMethod, string?>("HTTP {HttpMethod} {Uri}"); 59private static readonly Action<ILogger, HttpMethod, string?, Exception?> _requestPipelineStart = LoggerMessage.Define<HttpMethod, string?>( 64private static readonly Action<ILogger, double, int, Exception?> _requestPipelineEnd = LoggerMessage.Define<double, int>( 69private 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)
159private static readonly Action<ILogger, string, Exception> _fileLoadBegin = LoggerMessage.Define<string>( 164private static readonly Action<ILogger, string, double, Exception> _fileLoadEnd = LoggerMessage.Define<string, double>( 169private static readonly Action<ILogger, string, double, Exception> _fileReloadError = LoggerMessage.Define<string, double>( 174private static readonly Action<ILogger, string, double, Exception> _fileReLoad = LoggerMessage.Define<string, double>(
ModelLoaders\UriModelLoader.cs (4)
193private static readonly Action<ILogger, Uri, Exception> _uriReloadBegin = LoggerMessage.Define<Uri>( 198private static readonly Action<ILogger, Uri, double, Exception> _uriReloadEnd = LoggerMessage.Define<Uri, double>( 203private static readonly Action<ILogger, Uri, double, Exception> _uriReloadError = LoggerMessage.Define<Uri, double>( 208private static readonly Action<ILogger, Uri, Exception> _uriLoadError = LoggerMessage.Define<Uri>(
Microsoft.Extensions.Telemetry.PerformanceTests (4)
ClassicCodeGen.cs (2)
19global::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 }); 30global::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)
28private static readonly Action<ILogger, string, string, string, string, string, string, Exception?> _loggerMessage_refTypes = LoggerMessage.Define<string, string, string, string, string, string>( 33private static readonly Action<ILogger, long, long, int, Guid, Exception?> _loggerMessage_valueTypes = LoggerMessage.Define<long, long, int, Guid>(