1 instantiation of LogEntry
Aspire.Hosting (1)
src\Shared\ConsoleLogs\LogEntry.cs (1)
32return new LogEntry
19 references to LogEntry
Aspire.Hosting (19)
ApplicationModel\ResourceLoggerService.cs (12)
141internal Action<LogEntry> GetInternalLogger(string resourceName) 315private readonly CircularBuffer<LogEntry> _inMemoryEntries = new(MaxLogCount); 365var channel = Channel.CreateUnbounded<LogEntry>(); 370void Log(LogEntry log) => channel.Writer.TryWrite(log); 372LogEntry[] backlogSnapshot; 412static LogLine[] CreateLogLines(ref int lineNumber, IReadOnlyList<LogEntry> entries) 417var entry = entries[i]; 442private Action<LogEntry>? _onNewLog; 443private event Action<LogEntry> OnNewLog 504internal LogEntry[] GetBacklogSnapshot() 512public void AddLog(LogEntry logEntry, bool inMemorySource) 553loggerState.AddLog(LogEntry.Create(logTime, logMessage, isErrorMessage), inMemorySource: true);
Dcp\ApplicationExecutor.cs (1)
524logger(LogEntry.Create(timestamp, resolvedContent, content, isError));
src\Shared\ConsoleLogs\LogEntries.cs (4)
18private readonly CircularBuffer<LogEntry> _logEntries = new(maximumEntryCount); 26public IList<LogEntry> GetEntries() => _logEntries; 36public void InsertSorted(LogEntry logLine) 67private void InsertSortedCore(LogEntry logEntry)
src\Shared\ConsoleLogs\LogEntry.cs (2)
25public static LogEntry Create(DateTime? timestamp, string logMessage, bool isErrorMessage) 30public static LogEntry Create(DateTime? timestamp, string logMessage, string rawLogContent, bool isErrorMessage)