2 instantiations of LogEntry
Aspire.Hosting (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
28return new LogEntry 48return new LogEntry
29 references to LogEntry
Aspire.Hosting (29)
ApplicationModel\ResourceLoggerService.cs (14)
142internal Action<LogEntry> GetInternalLogger(string resourceName) 348private readonly CircularBuffer<LogEntry> _inMemoryEntries = new(MaxLogCount); 397List<LogEntry> inMemoryEntries; 421var channel = Channel.CreateUnbounded<LogEntry>(); 426void Log(LogEntry log) => channel.Writer.TryWrite(log); 428LogEntry[] backlogSnapshot; 479private Action<LogEntry>? _onNewLog; 480private event Action<LogEntry> OnNewLog 541internal LogEntry[] GetBacklogSnapshot() 549public void AddLog(LogEntry logEntry, bool inMemorySource) 590loggerState.AddLog(LogEntry.Create(logTime, logMessage, isErrorMessage), inMemorySource: true); 595private static LogLine[] CreateLogLines(ref int lineNumber, IReadOnlyList<LogEntry> entries) 600var entry = entries[i]; 621public IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, CancellationToken cancellationToken)
Dcp\DcpExecutor.cs (6)
429public async IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken) 445var logs = new List<LogEntry>(); 446foreach (var logEntry in CreateLogEntries(batch)) 456private static IEnumerable<LogEntry> CreateLogEntries(IReadOnlyList<(string, bool)> batch) 469yield return LogEntry.Create(timestamp, resolvedContent, content, isError); 508foreach (var logEntry in CreateLogEntries(batch))
IConsoleLogsService.cs (1)
8IAsyncEnumerable<IReadOnlyList<LogEntry>> GetAllLogsAsync(string resourceName, CancellationToken cancellationToken);
src\Shared\ConsoleLogs\LogEntries.cs (5)
19private readonly CircularBuffer<LogEntry> _logEntries = new(maximumEntryCount); 27public IList<LogEntry> GetEntries() => _logEntries; 59public bool ProcessPauseFilters(LogEntry logEntry) 82public void InsertSorted(LogEntry logLine) 113private void InsertSortedCore(LogEntry logEntry)
src\Shared\ConsoleLogs\LogEntry.cs (3)
26public static LogEntry CreatePause(DateTime startTimestamp, DateTime? endTimestamp = null) 41public static LogEntry Create(DateTime? timestamp, string logMessage, bool isErrorMessage) 46public static LogEntry Create(DateTime? timestamp, string logMessage, string rawLogContent, bool isErrorMessage)