node-microsvc-lib
Version:
NodeJS microservice framework library
33 lines • 986 B
JavaScript
/**
* Created by pedrosousabarreto@gmail.com on 15/Jan/2019.
*/
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConsoleLogger = void 0;
class ConsoleLogger {
constructor() {
this._attrs = {};
}
debug(message, ...optionalParams) {
console.log.apply(this, [message, ...optionalParams]);
}
info(message, ...optionalParams) {
console.info.apply(this, [message, ...optionalParams]);
}
warn(message, ...optionalParams) {
console.warn.apply(this, [message, ...optionalParams]);
}
error(message, ...optionalParams) {
console.error.apply(this, [message, ...optionalParams]);
}
fatal(message, ...optionalParams) {
console.error.apply(this, [message, ...optionalParams]);
}
create_child(attrs) {
if (attrs)
this._attrs = attrs;
return this;
}
}
exports.ConsoleLogger = ConsoleLogger;
//# sourceMappingURL=console_logger.js.map