File size: 892 Bytes
026255b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"use strict";
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;
}