UNPKG

@tshifhiwa/ohrm-ui-automation-framework

Version:

Playwright and TypeScript–based test automation framework for validating core UI features and workflows of the OrangeHRM demo application.

26 lines (19 loc) 613 B
import winston from "winston"; import WinstonLoggerFactory from "./internal/loggerFactory.js"; class LoggerManager { private static instance: winston.Logger | null = null; public static getLogger(): winston.Logger { if (!this.instance) { this.initializeLogger(); } if (!this.instance) { throw new Error("Logger instance not initialized"); } return this.instance; } private static initializeLogger(): void { this.instance = WinstonLoggerFactory.createLogger(); } } // Export the logger instance export default LoggerManager.getLogger();