| Method | What it does |
| Syslog.parse(text) | { entries, udid }. Each entry is { kind: "log", month, day, time, timestamp, process, subsystem, pid, level, levelClass, message, raw, multiline } or, for [connected …] / [disconnected] lines, { kind: "divider", text, raw }. timestamp is "01-15 10:23:45" (empty when the month isn't known); levelClass is fault, err, warn, note, info, debug or default (note for unknown levels). udid is the first connected device, or null. |
| Syslog.processes(entries) | [{ process, count, pids }], the processes with the most lines first. |
| Syslog.subsystems(entries) | [{ subsystem, count }], most lines first. |
| Syslog.timestamps(entries) | The distinct timestamps, sorted. |
| Syslog.isSyslog(text) | True when some line looks like a syslog header or a [connected line. |
| Syslog.LEVELS, Syslog.LEVEL_ORDER | Each level's short label and class ({ Error: { short: "ERR", class: "err" }, … }), and the levels in severity order. |