| Method | What it does |
| Logcat.parse(text) | { entries, processNames }. Each entry is { kind: "log", monthDay, time, timestamp, pid, tid, level, tag, message, raw } or, for “beginning of” lines, { kind: "divider", text, raw }. Continuation lines are added to the message (and raw) before them; one before any header is an entry of its own with level "I" and empty fields. |
| Logcat.processNames(text) | A Map from pid to process name, from “Start proc”, libc and “Process: …, PID: …” lines. |
| Logcat.processes(entries, processNames) | [{ pid, name, count }], the processes with the most lines first. |
| Logcat.timestamps(entries) | The distinct timestamps ("01-15 10:23:45.123"), sorted. |
| Logcat.isLogcat(text) | True when some line starts like a threadtime header or a “beginning of” divider. |
| Logcat.LEVELS, Logcat.LEVEL_NAMES | ["V", "D", "I", "W", "E", "F"], and their names (plus S, Silent). |