i using winston logger have there winston logger function helps in creating log file if current file not present logging ?
winston.loggers.add("order_log", { transports: [ new(winston.transports.console)({ //name: "order_check_console", level: 'debug', //json: true, colorize: true }), new(winston.transports.file)({ //name: "order_check_file", filename: system_path.order_trans_path, level: 'debug', handleexceptions: true, humanreadableunhandledexception: true }) ] });
Comments
Post a Comment