IOS - idevicesyslog 命令行工具 - 如何将毫秒添加到日志中?
IOS - idevicesyslog command line tool - How to add milli seconds to the logs?
已将 iPhone 连接到 Mac 笔记本电脑并尝试检查 iPhone 日志。
iOS idevicesyslog 命令行工具正在以秒为单位打印日志时间戳。 但是如何将毫秒添加到日志时间戳?
示例日志行
Apr 30 22:39:00 kernel(AppleARMPlatform)[0] <Notice>: Quota update for stream kGPU_Reads. PrevSize: 0x800000 newSize: 0x0 totalAssignedCache: 0x7ed80
idevicesyslog 工具
Usage: **idevicesyslog** [OPTIONS]
Relay syslog of a connected device.
OPTIONS:
-u, --udid UDID target specific device by UDID
-n, --network connect to network device
-x, --exit exit when device disconnects
-h, --help prints usage information
-d, --debug enable communication debugging
-v, --version prints version information
--no-colors disable colored output
使用ts命令添加时间戳
idevicesyslog | ts '[%Y-%m-%d %H:%M:%.S]'
已将 iPhone 连接到 Mac 笔记本电脑并尝试检查 iPhone 日志。
iOS idevicesyslog 命令行工具正在以秒为单位打印日志时间戳。 但是如何将毫秒添加到日志时间戳?
示例日志行
Apr 30 22:39:00 kernel(AppleARMPlatform)[0] <Notice>: Quota update for stream kGPU_Reads. PrevSize: 0x800000 newSize: 0x0 totalAssignedCache: 0x7ed80
idevicesyslog 工具
Usage: **idevicesyslog** [OPTIONS]
Relay syslog of a connected device.
OPTIONS:
-u, --udid UDID target specific device by UDID
-n, --network connect to network device
-x, --exit exit when device disconnects
-h, --help prints usage information
-d, --debug enable communication debugging
-v, --version prints version information
--no-colors disable colored output
使用ts命令添加时间戳
idevicesyslog | ts '[%Y-%m-%d %H:%M:%.S]'