1 write to _logger
Aspire.Hosting (1)
26 references to _logger
Aspire.Hosting (26)
Dcp\DcpExecutor.cs (26)
162_logger.LogDebug(ex, "One or more monitoring tasks terminated with an error.");
181_logger.LogDebug(ex, "Application orchestrator could not be stopped programmatically.");
265_logger.LogDebug("Watching over DCP {ResourceType} resources.", typeof(T).Name);
286_logger.LogDebug("Cancellation received while watching {ResourceType} resources.", typeof(T).Name);
290_logger.LogCritical(ex, "Watch task over Kubernetes {ResourceType} resources terminated unexpectedly.", typeof(T).Name);
294_logger.LogDebug("Stopped watching {ResourceType} resources.", typeof(T).Name);
327if (_logger.IsEnabled(LogLevel.Trace))
329_logger.LogTrace("Deleting application model resource {ResourceName} with {ResourceKind} resource {ResourceName}", appModelResource.Name, resourceKind, resource.Metadata.Name);
334if (_logger.IsEnabled(LogLevel.Trace))
336_logger.LogTrace("Updating application model resource {ResourceName} with {ResourceKind} resource {ResourceName}", appModelResource.Name, resourceKind, resource.Metadata.Name);
353if (_logger.IsEnabled(LogLevel.Trace))
355_logger.LogTrace("No application model resource found for {ResourceKind} resource {ResourceName}", resourceKind, resource.Metadata.Name);
407Container c when c.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource),
408Executable e when e.LogsAvailable => new ResourceLogSource<T>(_logger, _kubernetesService, resource),
428if (_logger.IsEnabled(LogLevel.Debug))
430_logger.LogDebug("Starting log streaming for {ResourceName}.", resource.Metadata.Name);
456_logger.LogDebug("Log streaming for {ResourceName} was cancelled.", resource.Metadata.Name);
460_logger.LogError(ex, "Error streaming logs for {ResourceName}.", resource.Metadata.Name);
988_logger.LogDebug(ex, "Failed to apply argument '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", arg, er.ModelResource.Name);
1030_logger.LogDebug(ex, "Failed to apply configuration value '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", c.Key, er.ModelResource.Name);
1289_logger.LogDebug(ex, "Failed to apply configuration value '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", kvp.Key, modelContainerResource.Name);
1328_logger.LogDebug(ex, "Failed to apply container runtime argument '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", arg, modelContainerResource.Name);
1368_logger.LogDebug(ex, "Failed to apply container argument '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", arg, modelContainerResource.Name);
1556_logger.LogDebug(ex, "Cancellation during creation of resources.");
1633_logger.LogError(ex, "Failed to start resource {ResourceName}", appResource.ModelResource.Name);
1641_logger.LogDebug("Starting {ResourceType} '{ResourceName}'.", typeof(T).Name, resourceName);