Skip to content

ElectronNetLog.startLogging method

ElectronNetLog › startLogging

Unofficial

Starts recording network events to path.

Signature:

startLogging(path: string, options?: ElectronStartLoggingOptions | undefined): Promise<void>

Parameters:

ParameterTypeDescription
pathstringThe file path to write the log to.
options?ElectronStartLoggingOptions | undefinedOptions controlling how events are captured.

Returns: Promise<void>A promise that resolves when the net log has begun recording.