10 instantiations of LogEntry
Microsoft.Extensions.Logging.Console (2)
ConsoleLogger.cs (2)
56LogEntry<TState> logEntry = new LogEntry<TState>(logLevel, _name, eventId, state, exception, formatter); 83var logEntry = new LogEntry<BufferedLogRecord>(rec.LogLevel, _name, rec.EventId, rec, null, static (s, _) => s.FormattedMessage ?? string.Empty);
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLogger.cs (2)
272var logEntry = new LogEntry<ModernTagJoiner>(logLevel, loggerInfo.Category, eventId, joiner, exception, static (s, e) => 373var logEntry = new LogEntry<LegacyTagJoiner>(logLevel, loggerInfo.Category, eventId, joiner, exception, static (s, e) =>
Microsoft.Extensions.Telemetry.Tests (6)
Sampling\RandomProbabilisticSamplerTests.cs (3)
33new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 45var logEntry = new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 63var logEntry = new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>(
Sampling\TraceBasedSamplerTests.cs (3)
28new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 47new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 68new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>(
20 references to LogEntry
Microsoft.Arcade.Common (1)
CompactConsoleLoggerFormatter.cs (1)
50public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter)
Microsoft.Extensions.Logging.Console (10)
ConsoleFormatter.cs (1)
41public abstract void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter);
ConsoleLogger.cs (2)
56LogEntry<TState> logEntry = new LogEntry<TState>(logLevel, _name, eventId, state, exception, formatter); 83var logEntry = new LogEntry<BufferedLogRecord>(rec.LogLevel, _name, rec.EventId, rec, null, static (s, _) => s.FormattedMessage ?? string.Empty);
JsonConsoleFormatter.cs (5)
29public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter) 71writer.WriteNumber(nameof(LogEntry<object>.EventId), eventId); 72writer.WriteString(nameof(LogEntry<object>.LogLevel), GetLogLevelString(logLevel)); 73writer.WriteString(nameof(LogEntry<object>.Category), category); 83writer.WriteStartObject(nameof(LogEntry<object>.State));
SimpleConsoleFormatter.cs (1)
47public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter)
SystemdConsoleFormatter.cs (1)
37public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter)
Microsoft.Extensions.Telemetry (5)
Logging\ExtendedLogger.cs (2)
272var logEntry = new LogEntry<ModernTagJoiner>(logLevel, loggerInfo.Category, eventId, joiner, exception, static (s, e) => 373var logEntry = new LogEntry<LegacyTagJoiner>(logLevel, loggerInfo.Category, eventId, joiner, exception, static (s, e) =>
Sampling\RandomProbabilisticSampler.cs (2)
45public override bool ShouldSample<TState>(in LogEntry<TState> logEntry) 83private bool TryApply<TState>(in LogEntry<TState> logEntry, out double probability)
Sampling\TraceBasedSampler.cs (1)
12public override bool ShouldSample<TState>(in LogEntry<TState> _) =>
Microsoft.Extensions.Telemetry.Abstractions (1)
Sampling\LoggingSampler.cs (1)
24public abstract bool ShouldSample<TState>(in LogEntry<TState> logEntry);
Microsoft.Extensions.Telemetry.Tests (3)
Sampling\RandomProbabilisticSamplerTests.cs (2)
45var logEntry = new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>( 63var logEntry = new LogEntry<IReadOnlyList<KeyValuePair<string, object?>>>(
Sampling\SamplingLoggerBuilderExtensionsTests.cs (1)
203public override bool ShouldSample<TState>(in LogEntry<TState> logEntry) => true;