Skip to content

AppiumTransport.beginConsoleCapture method

AppiumTransport › beginConsoleCapture

Begins a console capture by stamping the device log with a unique marker.

Uses adb shell log to write a marker into logcat at capture start so a later AppiumTransport.readConsoleCaptureSince can slice out everything the WebView logged afterwards — without the invasive logcat -c buffer clear.

Signature:

beginConsoleCapture(): Promise<ConsoleCaptureHandle>

Returns: Promise<ConsoleCaptureHandle>A handle carrying the unique marker.