1 write to RawContent
Aspire.Dashboard (1)
src\Shared\ConsoleLogs\LogEntry.cs (1)
103
RawContent
= rawLogContent,
17 references to RawContent
Aspire.Dashboard (12)
Model\TelemetryExportService.cs (2)
138
.Select(e => e.
RawContent
is not null ? AnsiParser.StripControlSequences(e.
RawContent
) : string.Empty)
src\Shared\ConsoleLogs\LogEntry.cs (8)
26
/// <see cref="
RawContent
"/> with ANSI control sequences removed. This is the plain text the user
29
/// <see cref="
RawContent
"/> still contains the raw escape sequences, so matching against either
39
if (
RawContent
is null)
44
return _strippedRawContent ??= AnsiParser.StripControlSequences(
RawContent
);
48
/// <see cref="
RawContent
"/> with the parsed timestamp and ANSI control sequences removed. This
57
if (
RawContent
is null)
62
_strippedLogContent ??= TimestampParser.TryParseConsoleTimestamp(
RawContent
, out var timestampParseResult)
125
return new(logEntry.Timestamp, logEntry.Content, logEntry.
RawContent
, logEntry.Type);
src\Shared\ConsoleLogs\LogEntrySerializer.cs (2)
27
if (entry.
RawContent
is not null)
29
writer.WriteLine(AnsiParser.StripControlSequences(entry.
RawContent
));
Aspire.Dashboard.Components.Tests (5)
Pages\ConsoleLogsTests.cs (5)
415
Assert.Equal("Live log", Assert.Single(cut.Instance._logEntries.GetEntries()).
RawContent
);
796
Assert.Equal(newLog, logEntry.
RawContent
);
1093
var newLog = Assert.Single(logViewer.Instance.LogEntries!.GetEntries(), e => e.
RawContent
== resumeContent);
1096
Assert.DoesNotContain(pauseContent, logViewer.Instance.LogEntries!.GetEntries().Select(e => e.
RawContent
));
1105
logger.LogInformation($"Log line. Type = {logEntry.Type}, Raw content = {logEntry.
RawContent
?? "no content"}, Pause content: {logEntry.Pause?.GetDisplayText(loc, browserTimeProvider) ?? "n/a"}");