UNPKG

ms-nestjs-eureka

Version:

A NestJS module that integrate eureka-js-client

29 lines 822 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClientLogger = void 0; const eureka_js_client_1 = require("eureka-js-client"); const common_1 = require("@nestjs/common"); class ClientLogger { constructor(isDebug) { this.isDebug = isDebug; this.logger = new common_1.Logger(eureka_js_client_1.Eureka.name); } warn(...args) { this.callLogger('warn', args); } info(...args) { this.callLogger('log', args); } debug(...args) { if (this.isDebug) this.callLogger('debug', args); } error(...args) { this.callLogger('error', args); } callLogger(level, args) { this.logger[level](args.join(' ')); } } exports.ClientLogger = ClientLogger; //# sourceMappingURL=client.logger.js.map