← 返回命令列表

Linux command

idevicesyslog 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Stream system log

idevicesyslog

Include only

idevicesyslog -p [Safari|WebKit]

Target a specific device

idevicesyslog -u [udid]

Print only

idevicesyslog -m "[error]"

Exclude processes

idevicesyslog -e "[SpringBoard|backboardd]"

Stream over network

idevicesyslog -n

Save output

idevicesyslog -o [device.log]

说明

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.

参数

-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.

FAQ

What is the idevicesyslog command used for?

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.

How do I run a basic idevicesyslog example?

Run `idevicesyslog` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u, --udid _UDID_ do in idevicesyslog?

Target a specific device by UDID.