Class

Logger

Logger()

Constructor

Methods

async deleteSession(name)

Delete the session with name {name} and all the requests, responses, pages, and cookies associated.

Parameters:
Name Type Description
name string

name of the session to delete

View Source logger/logger.js, line 69

async newSession(name, options) → {Promise.<Session>}

Make a session

Parameters:
Name Type Description
name string
options object
requestBody boolean

If true request body and calculate size

saveBody boolean

Should the response body be saved in a file ?

filesTypes Array.<string>

e types that should be saved

View Source logger/logger.js, line 54

Promise.<Session>