mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 10:49:24 +02:00
feat(demo): support multi-select in logcat and packet log
related to #425
This commit is contained in:
parent
055da71f6c
commit
52abdd146b
8 changed files with 1075 additions and 835 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue