ability to get logs from resoureses
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
My reserve (webapi) created on start becase of wriong DI config. I do not regiser DB Context. but ths code
```cs
public async Task InitializeAsync(string projectName)
{
var appHost = await DistributedApplicationTestingBuilder.CreateAsync();
App = await appHost.BuildAsync();
await App.StartAsync();
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(120));
var events = await App.ResourceNotifications.WaitForResourceHealthyAsync(projectName, cts.Token);
var httpClient = App.CreateHttpClient(projectName, "https");
ArgumentNullException.ThrowIfNull(httpClient.BaseAddress);
ServerUrl = httpClient.BaseAddress.ToString();
}
```
works perfectly. and resourse is healty (but it just creased on line like `var app = builder.Build();`
### Describe the solution you'd like
so how we can get actual exeptor or crash or logs from ?
I want to know if my app is started or crashed on start.
Becase now I have to run the app manualy and check dashoard for logs or so
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.