ResourceLoggerService
Class net10.0
A service that provides loggers for resources to write to.
namespace Aspire.Hosting.ApplicationModel;
public class ResourceLoggerService{ // ...} 11 members
Constructors1
Section titled ConstructorsMethods10
Section titled MethodsClearBacklog(string) Clears the log stream's backlog for the resource.
Complete(IResource) Completes the log stream for the resource.
Complete(string) Completes the log stream for the resource.
GetAllAsync(IResource)IAsyncEnumerable<IReadOnlyList<LogLine>> Get all logs for a resource. This will return all logs that have been written to the log stream for the resource and then complete.
GetAllAsync(string)IAsyncEnumerable<IReadOnlyList<LogLine>> Get all logs for a resource. This will return all logs that have been written to the log stream for the resource and then complete.
GetLogger(IResource)ILogger Gets the logger for the resource to write to.
GetLogger(string)ILogger Gets the logger for the resource to write to.
WatchAnySubscribersAsync(CancellationToken) Watch for subscribers to the log stream for a resource.
WatchAsync(IResource)IAsyncEnumerable<IReadOnlyList<LogLine>> Watch for changes to the log stream for a resource.
WatchAsync(string)IAsyncEnumerable<IReadOnlyList<LogLine>> Watch for changes to the log stream for a resource.