UNPKG

@russ-b/nestjs-common-tools

Version:
18 lines 697 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NestFormatTransport = void 0; const winston_1 = require("winston"); const nest_winston_1 = require("nest-winston"); class NestFormatTransport { static transport(level, appName = 'app') { return new winston_1.transports.Console({ level, format: winston_1.format.combine(winston_1.format.timestamp(), winston_1.format.ms(), nest_winston_1.utilities.format.nestLike(appName, { colors: true, prettyPrint: true, })), }); } } exports.NestFormatTransport = NestFormatTransport; //# sourceMappingURL=nest-format.transport.js.map