UNPKG

@hapiness/core

Version:

Project to have a HapiJS (https://hapijs.com/) based framework to create easier NodeJS back-end with some awesome features

16 lines 515 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Debug = require("debug"); class InternalLogger { /* istanbul ignore next */ constructor(tag = 'core', extension) { this.tag = tag; this.logger = Debug(extension ? `hapiness:${extension}` : 'hapiness'); } /* istanbul ignore next */ debug(message) { this.logger(`[${this.tag.toUpperCase()}] > ${message}`); } } exports.InternalLogger = InternalLogger; //# sourceMappingURL=logger.js.map