UNPKG

@nexex/orderbook

Version:
19 lines 889 B
"use strict"; var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result["default"] = mod; return result; }; Object.defineProperty(exports, "__esModule", { value: true }); var winston_1 = __importStar(require("winston")); exports.logger = winston_1.default.createLogger({ level: process.env.LOG_LEVEL || 'debug', format: winston_1.format.combine(winston_1.format.colorize(), winston_1.format.timestamp(), winston_1.format.splat(), winston_1.format.printf(function (info) { return "[" + info.level + "] " + info.timestamp + ": " + info.message; })), transports: [new winston_1.default.transports.Console()] }); exports.default = exports.logger; //# sourceMappingURL=logger.js.map