netLog
进程:
查看 --log-net-log
记录应用生命周期的网络事件。
options
Object (可选)captureMode
String (optional) - What kinds of data should be captured. By default, only metadata about requests will be captured. Setting this toincludeSensitive
will include cookies and authentication data. Setting it toeverything
will include all bytes transferred on sockets. Can bedefault
,includeSensitive
or .
Returns Promise<void>
- resolves when the net log has begun recording.
开始记录网络事件日志到 path
。
停止网络事件日志的记录。 如果未被调用,net 记录将自动结束当 app 退出的时候。
Properties
A property that indicates whether network logs are currently being recorded.