UNPKG

@xomlo/xomlo-sdk

Version:

29 lines 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logger = void 0; const winston_1 = require("winston"); const winston_console_format_1 = require("winston-console-format"); const constants_1 = require("../../constants"); exports.logger = (0, winston_1.createLogger)({ level: 'silly', format: winston_1.format.combine(winston_1.format.timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }), winston_1.format.ms(), winston_1.format.errors({ stack: true }), winston_1.format.splat(), winston_1.format.json()), transports: [ new winston_1.transports.File({ filename: constants_1.logPath }), new winston_1.transports.Console({ format: winston_1.format.combine(winston_1.format.colorize({ all: true }), winston_1.format.padLevels(), (0, winston_console_format_1.consoleFormat)({ showMeta: true, metaStrip: ["timestamp", "service"], inspectOptions: { depth: Infinity, colors: true, maxArrayLength: Infinity, breakLength: 120, compact: Infinity, }, })) }) ] }); //# sourceMappingURL=logger.js.map