1 instantiation of LogEntry
Aspire.Hosting (1)
src\Shared\ConsoleLogs\LogEntry.cs (1)
32
return new
LogEntry
19 references to LogEntry
Aspire.Hosting (19)
ApplicationModel\ResourceLoggerService.cs (12)
141
internal Action<
LogEntry
> GetInternalLogger(string resourceName)
315
private readonly CircularBuffer<
LogEntry
> _inMemoryEntries = new(MaxLogCount);
365
var channel = Channel.CreateUnbounded<
LogEntry
>();
370
void Log(
LogEntry
log) => channel.Writer.TryWrite(log);
372
LogEntry
[] backlogSnapshot;
412
static LogLine[] CreateLogLines(ref int lineNumber, IReadOnlyList<
LogEntry
> entries)
417
var
entry = entries[i];
442
private Action<
LogEntry
>? _onNewLog;
443
private event Action<
LogEntry
> OnNewLog
504
internal
LogEntry
[] GetBacklogSnapshot()
512
public void AddLog(
LogEntry
logEntry, bool inMemorySource)
553
loggerState.AddLog(
LogEntry
.Create(logTime, logMessage, isErrorMessage), inMemorySource: true);
Dcp\ApplicationExecutor.cs (1)
524
logger(
LogEntry
.Create(timestamp, resolvedContent, content, isError));
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)