@lambda-group/charydbis
Version:
๐ NodeJS ScyllaDB ORM. ๐งช๐ง
29 lines (23 loc) โข 791 B
JavaScript
;Object.defineProperty(exports, "__esModule", {value: true});
var _chunkKI3NM7CIjs = require('./chunk-KI3NM7CI.js');
// src/utils/logger.ts
var _Logger = class _Logger {
constructor(prefix) {
_chunkKI3NM7CIjs.__publicField.call(void 0, this, "prefix");
_chunkKI3NM7CIjs.__publicField.call(void 0, this, "shouldLog");
this.prefix = prefix;
this.shouldLog = process.env.NODE_LOG === "charydbis";
}
log(message) {
if (!this.shouldLog) return;
console.log(`[${this.prefix}] ${message}`);
}
error(message) {
if (!this.shouldLog) return;
console.error(`[${this.prefix}] ${message}`);
}
};
_chunkKI3NM7CIjs.__name.call(void 0, _Logger, "Logger");
var Logger = _Logger;
exports.Logger = Logger;
//# sourceMappingURL=chunk-HC6RU6YG.js.map