Skip to content
Docs Try Aspire
Docs Try

withBrowserLogs

Method
📦 Aspire.Hosting.Browsers v13.4.0-preview.1.26281.18
interface ContainerResource {
// ... omitted for brevity
withBrowserLogs(
browser?: string,
profile?: string,
userDataMode?: BrowserUserDataMode): IResourceWithEndpoints;
}

Signature

method withBrowserLogs builder
Adds a child resource that can open the application's primary browser endpoint in a tracked browser session, surface browser diagnostics, and capture screenshots.
withBrowserLogs(
browser?: string,
profile?: string,
userDataMode?: BrowserUserDataMode): IResourceWithEndpoints
browser string optional
profile string optional
userDataMode BrowserUserDataMode optional
IResourceWithEndpoints

Applies to

This method applies to the following types: