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