UNPKG

@amirmarmul/waba-common

Version:

![GitHub release](https://img.shields.io/github/v/release/amirmarmul/waba-common?style=flat-square)

16 lines (15 loc) 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logger = void 0; const winston_1 = require("winston"); exports.logger = (0, winston_1.createLogger)({ level: process.env.LOG_LEVEL, format: winston_1.format.combine(winston_1.format.splat(), winston_1.format.json()), transports: [ new winston_1.transports.Console() ], exceptionHandlers: [ new winston_1.transports.Console() ] }); exports.default = exports.logger;