UNPKG

testgenius-ai

Version:

🚀 TestGenius AI - The Ultimate E2E Testing Framework for Everyone | No Coding Required • AI-Powered Automation • Beautiful Reports • Zero Complexity

46 lines • 1.48 kB
export declare enum LogLevel { DEBUG = 0, INFO = 1, WARN = 2, ERROR = 3, SILENT = 4 } export interface LogConfig { level: LogLevel; enableConsole: boolean; enableFile: boolean; logDir: string; includeTimestamp: boolean; includeTestId: boolean; maxFileSize: number; maxFiles: number; } export declare class Logger { private config; private currentTestId; private logFile; constructor(config?: Partial<LogConfig>); private initializeLogFile; setTestId(testId: string): void; private formatMessage; private writeToFile; debug(message: string, ...args: any[]): void; info(message: string, ...args: any[]): void; warn(message: string, ...args: any[]): void; error(message: string, ...args: any[]): void; success(message: string, ...args: any[]): void; testStart(testId: string, testName: string): void; testStep(stepNumber: number, description: string): void; testSuccess(testId: string, duration: number): void; testFailure(testId: string, error: string, duration: number): void; browserNavigation(url: string): void; browserScreenshot(path: string): void; aiRequest(prompt: string): void; aiResponse(response: string): void; aiError(error: string): void; updateConfig(newConfig: Partial<LogConfig>): void; getConfig(): LogConfig; getLogFiles(): Promise<string[]>; clearLogs(): Promise<void>; } //# sourceMappingURL=Logger.d.ts.map