MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / enableFileLogging

Function enableFileLogging

packages/wdio-utils/src/utils.ts:406–413  ·  view source on GitHub ↗
(outputDir?: string)

Source from the content-addressed store, hash-verified

404 * @param {string} outputDir Directory containing the log file
405 */
406export async function enableFileLogging (outputDir?: string): Promise<void> {
407 if (!outputDir) {
408 return
409 }
410
411 await fs.mkdir(path.join(outputDir), { recursive: true })
412 process.env.WDIO_LOG_PATH = path.join(outputDir, 'wdio.log')
413}

Callers 4

runMethod · 0.90
remoteFunction · 0.90
initializeInstanceFunction · 0.90
utils.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…