2 writes to _logger
Aspire.Hosting (2)
ApplicationModel\ResourceNotificationService.cs (2)
44
_logger
= logger ?? throw new ArgumentNullException(nameof(logger));
59
_logger
= logger ?? throw new ArgumentNullException(nameof(logger));
5 references to _logger
Aspire.Hosting (5)
ApplicationModel\ResourceNotificationService.cs (5)
360
if (
_logger
.IsEnabled(LogLevel.Debug) && newState.State?.Text is { Length: > 0 } newStateText && !string.IsNullOrWhiteSpace(newStateText))
366
_logger
.LogDebug("Resource {Resource}/{ResourceId} changed state: {PreviousState} -> {NewState}", resource.Name, resourceId, previousStateText, newStateText);
371
_logger
.LogDebug("Resource {Resource}/{ResourceId} changed state: {NewState}", resource.Name, resourceId, newStateText);
375
if (
_logger
.IsEnabled(LogLevel.Trace))
377
_logger
.LogTrace("Resource {Resource}/{ResourceId} update published: " +