UNPKG

@mindpath/logger

Version:

Custom logging module to print logs on console, file or sent it to logs visualization application such as grafana

9 lines 522 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.consoleFormat = void 0; const winston_1 = require("winston"); const utils_1 = require("../utils"); exports.consoleFormat = winston_1.format.printf(({ timestamp, level, message, meta, stack }) => { return `\nLEVEL: ${level} | TIMESTAMP: ${timestamp} | MESSAGE: ${utils_1.stringifyMessage(message)} ${meta ? `| META: ${JSON.stringify(meta)}` : ''} ${stack ? `| STACK: ${stack}` : ''} \n`; }); //# sourceMappingURL=consoleFormat.js.map