2 instantiations of LogEntry
aspire (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
77return new LogEntry 99return new LogEntry
32 references to LogEntry
aspire (32)
Commands\LogsCommand.cs (11)
286foreach (var entry in entries) 326foreach (var entry in tailedEntries) 355var entry = ParseLogLine(logLine, logParser, resourceWatcher.GetAllResources()); 371/// into a <see cref="LogEntry"/> with the resolved resource name set on <see cref="LogEntry.ResourcePrefix"/> 374private static async Task<IList<LogEntry>> CollectLogsAsync( 433/// Parses a <see cref="ResourceLogLine"/> into a <see cref="LogEntry"/> with the resolved resource name 434/// set on <see cref="LogEntry.ResourcePrefix"/>. 436private static LogEntry ParseLogLine(ResourceLogLine logLine, LogParser logParser, IEnumerable<ResourceSnapshot> snapshots) 442private void OutputLogLine(LogEntry entry, OutputFormat format, bool timestamps) 478private static bool MatchesSearch(LogEntry entry, string search)
src\Shared\ConsoleLogs\LogEntries.cs (13)
19private readonly CircularBuffer<LogEntry> _logEntries = new(maximumEntryCount); 27public IList<LogEntry> GetEntries() => _logEntries; 45foreach (var pauseEntry in pauseEntries) 60public bool ProcessPauseFilters(LogEntry logEntry) 90public void InsertSortedRange(IReadOnlyList<LogEntry> logEntries) 94foreach (var logEntry in logEntries) 107var merged = new List<LogEntry>(existing.Count + batch.Count); 136private bool CanMerge(IReadOnlyList<LogEntry> logEntries) 146foreach (var logEntry in logEntries) 161foreach (var existingEntry in _logEntries) 176public void InsertSorted(LogEntry logLine) 219private int InsertSortedCore(LogEntry logEntry) 230var current = _logEntries[rowIndex];
src\Shared\ConsoleLogs\LogEntry.cs (4)
75public static LogEntry CreatePause(string resourcePrefix, DateTime startTimestamp, DateTime? endTimestamp = null) 92public static LogEntry Create(DateTime? timestamp, string logMessage, bool isErrorMessage) 97public static LogEntry Create(DateTime? timestamp, string logMessage, string rawLogContent, bool isErrorMessage, string? resourcePrefix) 123public static LogEntryKey Create(LogEntry logEntry)
src\Shared\ConsoleLogs\LogParser.cs (3)
20public LogEntry CreateLogEntry(string rawText, bool isErrorOutput, string? resourcePrefix) 70var logEntry = LogEntry.Create(timestamp, content, rawText, isErrorOutput, resourcePrefix);
src\Shared\ConsoleLogs\SharedAIHelpers.cs (1)
754public static string SerializeLogEntry(LogEntry logEntry)