log
Logs message (or stdin) to logcat. toybox
On Linux, macOS
Linux
Logs message (or stdin) to logcat. "radio", "events", "system", "crash", "stats", "security", "kernel" d: DEBUG e: ERROR f: FATAL i: INFO v: VERBOSE w: WARN s: SILENT
log [-b BUFFER] [-p PRI] [-t TAG] [MESSAGE...]
-b BUFFERUse the given log buffer instead of "main":-p PRIUse the given priority instead of INFO:-t TAGUse the given tag instead of "log"macOS
View, export, and configure logging systems.
Stream live system logs
log streamIdentifyStream logs sent to syslog from the process with a specific PID
log stream --process process_idIdentifyShow logs sent to syslog from a process with a specific name
log show --predicate "process == 'process_name'"IdentifyExport all logs to disk for the past hour
sudo log collect --last 1h --output path/to/file.logarchiveIdentify