UNPKG

tm-playwright-framework

Version:

Playwright Cucumber TS framework - The easiest way to learn

28 lines (27 loc) 886 B
/** * LOGGER.TS * * This TypeScript file contains methods to create Cucumber default logs during execution * * @author Sasitharan, Govindharam * @reviewer Sahoo, AshokKumar * @version 1.0 - 1st-JUNE-2025 * * @methods * - `log`: Method to log the message based on status received * - `logStatus`: Method to receive the message along with the status to log the message as info or error */ import { transports } from "winston"; export declare const silentErrors: { message: string; stack: string[]; }[]; export declare function options(scenarioName: string, path?: string): { transports: transports.FileTransportInstance[]; }; export default class Logger { constructor(); static logSoftAssertFailure(err: Error): Promise<void>; log(status: string, message: string): Promise<void>; static logStatus(status: string, message: string): Promise<void>; }