| ; | |
| Object.defineProperty(exports, "__esModule", { value: true }); | |
| exports.getLogger = getLogger; | |
| /** | |
| * Compatibility matrix | |
| * | |
| | Library | log | info | warn | error | \<interpolation\> | | |
| |----------|:------|:-------|:------|:--------|:------------------| | |
| | console | β | β | β | β | β (%s %o %O) | | |
| | bunyan | β | β | β | β | β (%s %o %O) | | |
| | pino | β | β | β | β | β (%s %o %O) | | |
| | winston | β | β | β | β | β (%s %o %O)^1 | | |
| | log4js | β | β | β | β | β (%s %o %O) | | |
| * | |
| * ^1: https://github.com/winstonjs/winston#string-interpolation | |
| */ | |
| const noopLogger = { | |
| info: () => { }, | |
| warn: () => { }, | |
| error: () => { }, | |
| }; | |
| function getLogger(options) { | |
| return options.logger || noopLogger; | |
| } | |