MCPcopy Create free account
hub / github.com/callstack/agent-device / resolveLogBackend

Function resolveLogBackend

src/daemon/app-log.ts:193–199  ·  view source on GitHub ↗
(device: DeviceInfo)

Source from the content-addressed store, hash-verified

191}
192
193export function resolveLogBackend(device: DeviceInfo): LogBackend {
194 // Routes the platform branch through the PlatformPlugin app-log facet (issue
195 // #974). Apple/Android carry a `resolveBackend`; linux/web (and any unregistered
196 // platform) fall through to the historical `'android'` default. The daemon
197 // app-log routing parity test pins this against the former hand branch.
198 return tryGetPlugin(device.platform)?.appLog?.resolveBackend(device) ?? 'android';
199}
200
201export async function readSessionNetworkCapture(
202 params: SessionNetworkCaptureParams,

Calls 1

tryGetPluginFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…