1 instantiation of LogEntry
Aspire.Dashboard (1)
src\Shared\ConsoleLogs\LogEntry.cs (1)
32return new LogEntry
22 references to LogEntry
Aspire.Dashboard (10)
Components\Pages\ConsoleLogs.razor.cs (1)
427var logEntry = logParser.CreateLogEntry(content, isErrorOutput);
ConsoleLogs\LogParser.cs (3)
13public LogEntry CreateLogEntry(string rawText, bool isErrorOutput) 60var logEntry = LogEntry.Create(timestamp, content, rawText, isErrorOutput);
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)
Aspire.Dashboard.Tests (12)
ConsoleLogsTests\LogEntriesTests.cs (12)
22var logEntry = logParser.CreateLogEntry(content, isError); 36var entry = Assert.Single(logEntries.GetEntries()); 185logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(1), "1", isErrorMessage: false)); 186logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(3), "3", isErrorMessage: false)); 187logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(2), "2", isErrorMessage: false)); 206logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(1), "1", isErrorMessage: false)); 207logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(2), "2", isErrorMessage: false)); 208logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(3), "3", isErrorMessage: false)); 226logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(1), "1", isErrorMessage: false)); 227logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(3), "3", isErrorMessage: false)); 228logEntries.InsertSorted(LogEntry.Create(timestamp.AddSeconds(2), "2", isErrorMessage: false)); 244var entry = parser.CreateLogEntry("\x1b[36mhttps://www.example.com\u001b[0m", isErrorOutput: false);