idevicesyslog
streams the system log from iOS devices
TLDR
Stream system log from the attached device
$ idevicesyslog
Include only messages from specific processes (pipe-separated)$ idevicesyslog -p [Safari|WebKit]
Target a specific device by UDID$ idevicesyslog -u [udid]
Print only lines containing a pattern$ idevicesyslog -m "[error]"
Exclude processes (pipe-separated)$ idevicesyslog -e "[SpringBoard|backboardd]"
Stream over network instead of USB$ idevicesyslog -n
Save output to a file$ idevicesyslog -o [device.log]
SYNOPSIS
idevicesyslog [options]idevicesyslog pidlistidevicesyslog archive PATH [options]
DESCRIPTION
idevicesyslog streams the system log from iOS devices. It provides real-time access to device logs for debugging.The tool shows messages from all processes or filtered subsets. It's essential for iOS app development and debugging.
PARAMETERS
-u, --udid UDID
Target a specific device by UDID.-n, --network
Connect to a network-attached device instead of USB.-p, --process PROCESS
Include messages from the given process names (| separated).-e, --exclude PROCESS
Exclude messages from the given process names (| separated).-m, --match STRING
Print only messages containing STRING.-M, --unmatch STRING
Print only messages not containing STRING.-t, --trigger STRING
Start logging when a message containing STRING is seen.-T, --untrigger STRING
Stop logging when a message containing STRING is seen.-k, --kernel, -K, --no-kernel
Include or exclude kernel messages.-o, --output FILE
Write the log stream to FILE in addition to the terminal.-x, --exit
Exit when the device disconnects.--no-colors, --colors
Disable or force ANSI color output.-q, --quiet
Suppress banner / status output.-d, --debug
Enable debug output.--help
Display help information.
CAVEATS
Part of libimobiledevice. Continuous stream. May need developer mode on iOS 16+.
HISTORY
idevicesyslog is part of libimobiledevice for iOS log streaming.
SEE ALSO
idevice_id(1), ideviceinfo(1), idevicepair(1), adb(1)
