2 instantiations of LogEntry
Aspire.Hosting (2)
src\Shared\ConsoleLogs\LogEntry.cs (2)
28
return new
LogEntry
48
return new
LogEntry
29 references to LogEntry
Aspire.Hosting (29)
ApplicationModel\ResourceLoggerService.cs (14)
142
internal Action<
LogEntry
> GetInternalLogger(string resourceName)
348
private readonly CircularBuffer<
LogEntry
> _inMemoryEntries = new(MaxLogCount);
397
List<
LogEntry
> inMemoryEntries;
421
var channel = Channel.CreateUnbounded<
LogEntry
>();
426
void Log(
LogEntry
log) => channel.Writer.TryWrite(log);
428
LogEntry
[] backlogSnapshot;
479
private Action<
LogEntry
>? _onNewLog;
480
private event Action<
LogEntry
> OnNewLog
541
internal
LogEntry
[] GetBacklogSnapshot()
549
public void AddLog(
LogEntry
logEntry, bool inMemorySource)
590
loggerState.AddLog(
LogEntry
.Create(logTime, logMessage, isErrorMessage), inMemorySource: true);
595
private static LogLine[] CreateLogLines(ref int lineNumber, IReadOnlyList<
LogEntry
> entries)
600
var
entry = entries[i];
621
public IAsyncEnumerable<IReadOnlyList<
LogEntry
>> GetAllLogsAsync(string resourceName, CancellationToken cancellationToken)
Dcp\DcpExecutor.cs (6)
429
public async IAsyncEnumerable<IReadOnlyList<
LogEntry
>> GetAllLogsAsync(string resourceName, [EnumeratorCancellation] CancellationToken cancellationToken)
445
var logs = new List<
LogEntry
>();
446
foreach (
var
logEntry in CreateLogEntries(batch))
456
private static IEnumerable<
LogEntry
> CreateLogEntries(IReadOnlyList<(string, bool)> batch)
469
yield return
LogEntry
.Create(timestamp, resolvedContent, content, isError);
508
foreach (
var
logEntry in CreateLogEntries(batch))
IConsoleLogsService.cs (1)
8
IAsyncEnumerable<IReadOnlyList<
LogEntry
>> GetAllLogsAsync(string resourceName, CancellationToken cancellationToken);
src\Shared\ConsoleLogs\LogEntries.cs (5)
19
private readonly CircularBuffer<
LogEntry
> _logEntries = new(maximumEntryCount);
27
public IList<
LogEntry
> GetEntries() => _logEntries;
59
public bool ProcessPauseFilters(
LogEntry
logEntry)
82
public void InsertSorted(
LogEntry
logLine)
113
private void InsertSortedCore(
LogEntry
logEntry)
src\Shared\ConsoleLogs\LogEntry.cs (3)
26
public static
LogEntry
CreatePause(DateTime startTimestamp, DateTime? endTimestamp = null)
41
public static
LogEntry
Create(DateTime? timestamp, string logMessage, bool isErrorMessage)
46
public static
LogEntry
Create(DateTime? timestamp, string logMessage, string rawLogContent, bool isErrorMessage)