mirror of
https://github.com/LukeHagar/arbiter.git
synced 2025-12-09 20:37:50 +00:00
Saving all progress
This commit is contained in:
24
node_modules/http-proxy-middleware/dist/logger.js
generated
vendored
Normal file
24
node_modules/http-proxy-middleware/dist/logger.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"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;
|
||||
}
|
||||
Reference in New Issue
Block a user