Skip to main content
Version: 1.1.0

clear

Delete all logcat entries in the buffer.

export const LogId = {
All: -1,
Main: 0,
Radio: 1,
Events: 2,
System: 3,
Crash: 4,
Stats: 5,
Security: 6,
Kernel: 7,
} as const;

export type LogId = (typeof LogId)[keyof typeof LogId];

declare class Logcat {
clear(ids?: LogId[]): Promise<void>;
}

Usage

import type { Adb } from "@yume-chan/adb";
import { Logcat } from "@yume-chan/android-bin";

declare const adb: Adb;
const logcat = new Logcat(adb);

await logcat.clear();
Equivalent ADB Command
adb logcat -c