feat(demo): support multi-select in logcat and packet log

related to #425
This commit is contained in:
Simon Chan 2023-01-27 15:35:39 +08:00
parent 055da71f6c
commit 52abdd146b
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
8 changed files with 1075 additions and 835 deletions

View file

@ -1,4 +1,5 @@
// cspell: ignore logcat
// cspell: ignore usec
import { AdbCommandBase, AdbSubprocessNoneProtocol } from "@yume-chan/adb";
import {
@ -124,12 +125,21 @@ export function formatAndroidLogEntry(
switch (format) {
// TODO: implement other formats
default:
return `${
default: {
// prettier-ignore
const text=`${
AndroidLogPriorityToCharacter[entry.priority]
}/${entry.tag.padEnd(8)}(${uid}${entry.pid
.toString()
.padStart(5)}): ${entry.message}`;
}/${
entry.tag.padEnd(8)
}(${
uid
}${
entry.pid.toString().padStart(5)
}): ${
entry.message
}`;
return text;
}
}
}