projecte_ionic/node_modules/blocking-proxy/built/lib/webdriver_logger.d.ts
2022-02-09 18:30:03 +01:00

36 lines
1.1 KiB
TypeScript
Executable file

/// <reference types="node" />
import * as stream from 'stream';
import { WebDriverCommand } from './webdriver_commands';
/**
* Logs WebDriver commands, transforming the command into a user-friendly description.
*/
export declare class WebDriverLogger {
logStream: stream.Writable;
readonly logName: string;
constructor();
/**
* Start logging to the specified directory. Will create a file named
* 'webdriver_log_<process id>.txt'
*
* @param logDir The directory to create log files in.
*/
setLogDir(logDir: string): void;
/**
* Logs a webdriver command to the log file.
*
* @param command The command to log.
*/
logWebDriverCommand(command: WebDriverCommand): void;
/**
* Log an arbitrary event to the log file.
*
* @param msg The message to log.
* @param sessionId The session id associated with the event.
* @param elapsedMs How long the event took, in ms.
*/
logEvent(msg: string, sessionId: string, elapsedMs: number): void;
private renderData(command);
private renderResponse(command);
private timestamp();
}