1 instantiation of LogEntry
Aspire.Dashboard (1)
src\Shared\ConsoleLogs\LogEntry.cs (1)
32
return new
LogEntry
22 references to LogEntry
Aspire.Dashboard (10)
Components\Pages\ConsoleLogs.razor.cs (1)
427
var
logEntry = logParser.CreateLogEntry(content, isErrorOutput);
ConsoleLogs\LogParser.cs (3)
13
public
LogEntry
CreateLogEntry(string rawText, bool isErrorOutput)
60
var
logEntry =
LogEntry
.Create(timestamp, content, rawText, isErrorOutput);
src\Shared\ConsoleLogs\LogEntries.cs (4)
18
private readonly CircularBuffer<
LogEntry
> _logEntries = new(maximumEntryCount);
26
public IList<
LogEntry
> GetEntries() => _logEntries;
36
public void InsertSorted(
LogEntry
logLine)
67
private void InsertSortedCore(
LogEntry
logEntry)
src\Shared\ConsoleLogs\LogEntry.cs (2)
25
public static
LogEntry
Create(DateTime? timestamp, string logMessage, bool isErrorMessage)
30
public static
LogEntry
Create(DateTime? timestamp, string logMessage, string rawLogContent, bool isErrorMessage)
Aspire.Dashboard.Tests (12)
ConsoleLogsTests\LogEntriesTests.cs (12)
22
var
logEntry = logParser.CreateLogEntry(content, isError);
36
var
entry = Assert.Single(logEntries.GetEntries());
185
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(1), "1", isErrorMessage: false));
186
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(3), "3", isErrorMessage: false));
187
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(2), "2", isErrorMessage: false));
206
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(1), "1", isErrorMessage: false));
207
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(2), "2", isErrorMessage: false));
208
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(3), "3", isErrorMessage: false));
226
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(1), "1", isErrorMessage: false));
227
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(3), "3", isErrorMessage: false));
228
logEntries.InsertSorted(
LogEntry
.Create(timestamp.AddSeconds(2), "2", isErrorMessage: false));
244
var
entry = parser.CreateLogEntry("\x1b[36mhttps://www.example.com\u001b[0m", isErrorOutput: false);