netLog
Process: Main
See to log network events throughout the app’s lifecycle.
- Object (optional)
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
oreverything
.
Returns Promise<void>
- resolves when the net log has begun recording.
Starts recording network events to path
.
Stops recording network events. If not called, net logging will automatically end when app quits.
Properties
A boolean
property that indicates whether network logs are currently being recorded.