2 instantiations of LogEntry
aspire (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
77return new LogEntry 99return new LogEntry
27 references to LogEntry
aspire (27)
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 (8)
19private readonly CircularBuffer<LogEntry> _logEntries = new(maximumEntryCount); 27public IList<LogEntry> GetEntries() => _logEntries; 45foreach (var pauseEntry in pauseEntries) 60public bool ProcessPauseFilters(LogEntry logEntry) 83public void InsertSorted(LogEntry logLine) 99var entry = _logEntries[i]; 114private void InsertSortedCore(LogEntry logEntry) 126var 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)