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 to includeSensitive will include cookies and authentication data. Setting it to everything will include all bytes transferred on sockets. Can be default, includeSensitive or everything.

    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.